I have a bit of a weird problem.
I developed an app with MVC 4 and the new Web API and it works fine locally.
I installed MVC4 on the server and deployed the app. Now I get the following error:
无法加载文件或程序集的系统.网Http,Version=2.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35'或其依赖项之一.定位的程序集 list 定义与程序集引用不匹配.(HRESULT的例外:0x8013100)
描述:当前Web请求执行过程中发生未经处理的异常.有关错误及其来源的详细信息,请查看堆栈跟踪
有趣的是,这个版本的系统.网我在本地的包文件夹或ASP.NET MVC 4\Assemblys文件夹为1.0.0.0.
查看nuget依赖项:
ASP.NET WEb API Core Libraries (Beta) depends on System.Net.Http.Formatting.
And System.Net.Http.Formatting depends on System.Net.Http.
I guess that is where this comes from. But I do have Version 2.0.20126.16343 of this package installed, it's just that the dll inside has version 1.0.0.0
我错过什么了吗?
UPDATE:个
这是另一个ASP的子应用程序.NET应用程序,但另一个仍然基于WebForms.所以,有些事情搞砸了.但如果我在网页的组装部分下做一个清理.config if甚至找不到应用程序本身.