Home Forums Software Development [Solved] Project building with several errors when using EyeXFramework Reply To: [Solved] Project building with several errors when using EyeXFramework

#7364
Grant [Tobii]
Keymaster

Hi @adamdoherty, this error message BadImageFormatException results when loading a dll by incompatible bitness (32 or 64-bit) on the solution/project vs. the DLL.

To resolve the error, you can either:

– Change target platform to x86 in your Visual Studio solution
– If you want to build a 64-bit application, change the references for the two DLLs Tobii.EyeX.Client.dll and Tobii.EyeX.Client.Net20.dll to the 64-bit versions, located in \lib\x64

Also check that is within the project properties for visual studio is if “Prefer 32-Bit” has been enabled?

Please let us know how you get on.