Forum archiveIssue archiveOther usage issues

Archived discussion

C# Sample - File or assembly not found

Other usage issuesFri, 04/18/2008 - 10:025 replies

Browse this forum
QuestionAuthor

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

Discussion

5 archived replies

Posts are displayed in their archived order.

01Commenter-1

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

maybe this helpls.

Commenter-1

02Commenter-2

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?

Commenter-2

03Commenter-1

Hi Arno,

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

Commenter-1

04Commenter-2

Hi Pawel,

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

Commenter-2

05Commenter-2

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.

Commenter-2