我的MVC4 Web Api应用程序在Any Cpu模式下构建时工作正常.在这种模式下,它创建了32位dll.但是,当我在x64模式下构建应用程序时,执行它时会出现以下错误:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Could not load file or assembly 'CoreService' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.BadImageFormatException: Could not load file or assembly 'CoreService' or one of its dependencies. …Run Code Online (Sandbox Code Playgroud)