Trouble running the samples

Hi!


I have downloaded the samples from your site, and opened them on VS 2010.
The problem is that when i try to run any of them, i get multiple errors of undeclared and undefined names.
I think that mainly becuase of this line:

Imports Aspose.Words

It appears underlined indicating that it can’t be found.
Am i doing something wrong?

Regards,

Hi Hélder,

Thanks for your inquiry.

I think you may not have the Aspose.Words library installed as the samples archive contains only the samples, but not the Aspose.Words.dll. You can download the Aspose.Words.dll from here. Please pick the latest version to download. I suggest to download the MSI which includes offline documentation and extra demo projects. You can also download the DLLs only from the same link.

Thanks,

Hi,

You were right, i was missing the .dll’s and that solved my problem. At least that problem, because when i open any sample solution on VS, i get an error saying that vshost-clr2.exe has stopped working. I tested some of my own apps and this doesn’t happen. If i ignore this error and still try to run the solution i get an exception: An unhandled exception of type ‘System.AccessViolationException’ occurred in Unknown Module.


Am i doing something wrong?

Regards,

Hi Hélder,

Thanks for this additional information.

I can't think of any obvious reason as to why this is happening on your side. Can you perhaps try on a different machine or try using a different version of Visual Studio.

Also I suggest try creating a project from stratch. You can simply reference Aspose.Words.dll in your project and use Imports Aspose.Words and then try to compile it.

Thanks,