这个论坛上有很多关于BadImageFormatException的问题,但没有一个与我的问题完全匹配。我有一个包含多个项目的解决方案。当我在Debug或Release+AnyCPU中运行时,一切正常。然而,当我切换到x64并运行我的ASP.NETMVC项目时,我得到了臭名昭著的BadImageFormatExceptionCouldnotloadfileorassembly'AgileEFLib'oroneofitsdependencies.Anattemptwasmadetoloadaprogramwithanincorrectformat.AgileEFLib是一个内部实用程序库