小编use*_*490的帖子

MVC 4 Web Api在x64模式下构建,在执行"无法加载文件或程序集'xxx'或其依赖项之一时出错

我的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)

64-bit asp.net-mvc-4 asp.net-web-api

5
推荐指数
1
解决办法
2888
查看次数

标签 统计

64-bit ×1

asp.net-mvc-4 ×1

asp.net-web-api ×1