intel / acat

Assistive Context-Aware Toolkit (ACAT)
Other
3.2k stars 622 forks source link

Exception thrown: 'System.BadImageFormatException' in mscorlib.dll #57

Closed mmanka1 closed 1 week ago

mmanka1 commented 6 years ago

Hi, I have been trying to resolve a runtime problem with the source project I cloned from the master branch. I am getting the following error:

LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Attempting download of new URL file:///C:/Users/mmanka/ACATProject/acat/src/Applications/ACATApp/bin/Debug/Extensions/Default/Actuators/VisionActuator/opencv_videostab2412.dll. ERR: Failed to complete setup of assembly (hr = 0x80131018). Probing terminated.

Additional Information: Exception thrown: 'System.BadImageFormatException' in mscorlib.dll DEBUG:[ACAT.Lib.Core.ActuatorManagement][Actuators.onFileFound] Could not get types from assembly. Exception : System.BadImageFormatException: Could not load file or assembly or one of its dependencies. The module was expected to contain an assembly manifest.

There seems to be a problem loading the assemblies (.dll) compiled, but I am not sure if a runtime compatibility problem is to blame for the mismatch in the format of the .dll assemblies. I tried changing the project build target in Visual Studio from 'X86' to 'Any CPU', but the same problem arised. I am using the .NET target framework version v4.5 and working in Visual Studio 2017 (32-bit) on a Windows 10 computer.

Any help would be greatly appreciated.