在Windows 8 64位系统上编译或运行我的应用程序时,会抛出"BadImageFormatException"。我已经搜索了互联网,很多人都遇到了相同的错误消息。但是,没有任何解决方案可以解决我的问题或情况。我正在使用Visual Studio 2012 Express。
错误消息:
“Error 38 Could not load file or assembly 'file:///C:/Projects/Windows Projects/Weld/Components/FileAttachments/FileAttachments/FileAttachments/bin/x86/Debug/FileAttaching.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.”
我有一些C++ dll,并且大部分dll都是使用C#编译的。其中一些dll是在32位计算机上编译的,而我正在使用64位计算机。
错误消息:
“Error 38 Could not load file or assembly 'file:///C:/Projects/Windows Projects/Weld/Components/FileAttachments/FileAttachments/FileAttachments/bin/x86/Debug/FileAttaching.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.”
我有一些C++ dll,并且大部分dll都是使用C#编译的。其中一些dll是在32位计算机上编译的,而我正在使用64位计算机。