C# Sample - File or assembly not found

Hello,

I have tried the C# sample. But when I call a method from the shell class I got an error like this:

"The File or assembly , or one of its dependencies, was not found.

Does anybody have an idea how I could fix that?

I use VS 2005 Professional.

Thank you and best regards

Arno

Pawel's picture

Check my post:
http://www.opencascade.org/org/forum/thread_12788/

maybe this helpls.

Pawel

Arno Hofmann's picture

Hi Pawel,

thank's for reply.

All dll files like occ.dll and shell.dll and the app.exe are in the same directory. But it doesn't work yet. Should I copy all files from the debug folders (occ and shell) in the app.exe debug folder?

Arno

Pawel's picture

Hi Arno,

no necessarily. It look a bit as if the OCC dlls are not visible to the application. Are all the paths set?

Pawel

Arno Hofmann's picture

Hi Pawel,

I also think so! Where can I set the pathes to the OCC dll's?

Arno

Arno Hofmann's picture

Hi Pawel,

It works! I programmed my own c# project and added a new C++ project with the wrapper classes OCCViewer and shell.

Thank's for your help.

Arno