An attempt was made to load a program with an incorrect format #17
-
Hi, System.BadImageFormatException: 'Could not load file or assembly 'Macad.Occt, Version=2.0.1353.3, Culture=neutral, PublicKeyToken=f3b86e0df7940e9a'. An attempt was made to load a program with an incorrect format I get this error when trying to run an application that only uses the wrapper code. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I have double checked the exe file and it is a x64. Occt is also x64. |
Beta Was this translation helpful? Give feedback.
-
Hi @stromhaug-tommy, this exception is thrown whenever a module cannot be loaded. In addition to the wrong target format, it is possible that a dependency was not found. You can check that with Dependency Walker (on Macad.Occt). |
Beta Was this translation helpful? Give feedback.
Hi @stromhaug-tommy,
this exception is thrown whenever a module cannot be loaded. In addition to the wrong target format, it is possible that a dependency was not found. You can check that with Dependency Walker (on Macad.Occt).