I’m compiling a C# program on VS 2010 on Windows 7, then running the files (all taken from the build’s bin\Debug directory) on another 32-bit machine.
The files from the Debug directory also contain the Microsoft.Office.Project.Server.Library.dll file that this program relies on.
On the VS 2010 project’s build configuration, the platform is set to x86. Yet on the 32-bit machine it results in a System.BadImageFormatException.
Unhandled Exception: System.BadImageFormatException: Could not load file or assembly
'Microsoft.Office.Project.Server.Library, Version=12.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The module was expected to
contain an assembly manifest. File name: 'Microsoft.Office.Project.Server.Library,
Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
What can the reason for this be?
I still think it’s a x86 v x64 issue. Does the executable depend on other x64 libraries?