
Fri, 04/15/2022 - 13:33
To be able to build the sample code, I added OpenCascade headers as additional include directories to OCCTProxy project like in attached photo 1.
Afterwards, I added path of the opencascade .lib files to OCCTProxy project as additional library directories like in attached photo 2 .
Finally, I added all .lib files path as additional dependencies to OCCTProxy project like in attached photo 3.
After these steps I run the "msvc.bat vc142 win64 Debug " command and OCCTProxy.dll has been created successfully. Afterwards WPF project has been built successfully and program is executed. However, when I click new button attached exception occurs. Do you have any idea about this problem? (Attached photo crash)
System.IO.FileNotFoundException: 'Could not load file or assembly 'OCCTProxy.dll' or one of its dependencies. The specified module could not be found.
Thank you in advance.
Wed, 11/23/2022 - 19:12
Hey,
I am not sure if you are running into the same problem as I just have.
I hope this helps https://dev.opencascade.org/content/occtproxy-csharp-build
Tue, 09/12/2023 - 11:09
Have you solved this problem? I encounter the same situation and have no idea.
Wed, 04/16/2025 - 06:04
I have the exact same problem as you, have you solved it, and how can I solve it?
Wed, 04/16/2025 - 11:30
The issue with "Could not load file or assembly 'OCCTProxy.dll" related to the missed 3rd-party libs in PATH variable. Please check that all 3rd-party used for OCCT build correctly setup to be found from PATH variable (all the dlls, for example freeimage, freetype, jemalloc,...) or located directly in the folder, where you trying to start your EXE.
Best regards, Dmitrii.