我的项目使用另一个lib项目作为参考。无法在Visual Studio 2010中加载文件或程序集
我试图在“Relase”模式下运行项目时出现此错误,在“调试”模式下工作正常。
它说,因为它不能加载的lib项目:
"An unhandled exception of type 'System.BadImageFormatException' occurred in mscorlib.dll
Additional information: Could not load file or assembly 'UserManagementProviders,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
An attempt was made to load a program with an incorrect format."
http://stackoverflow.com/questions/5229310/system-badimageformatexception-could-not-load-file-or-assembly –