【发布时间】:2014-02-09 21:52:37
【问题描述】:
我遵循您的建议步骤。我使用统一。我在Boostrapper.Initialize 上收到了一个问题。这个问题说"An exception of type 'System.IO.FileLoadException' occurred in SupportCours2.dll,但没有在用户代码中处理
补充资料:
Could not load file or assembly 'System.Web.Http, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)" and in the inner I have {"Could not load file or assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
The located assembly's manifest definition does not match the assembly reference.
(Exception from HRESULT: 0x80131040)":"System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"}
内部是奇怪的 4.0 版本,顶部是 5.0
我尝试了很多事情:我关注升级http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2,我在哪里可以找到用于升级到 System.Web.Http v5.0.0.0 的 NuGet 包?并且无法使用 ASP.NET (MVC 4) Web API OData Prerelease 加载文件或程序集 System.Net.Http, Version=4.0.0.0
我也遵循您的建议,使用“pre”版本并修改 web.config。我没有工作。
你能帮忙吗?
最好的问候,亚历山大
【问题讨论】:
标签: asp.net-mvc