相关疑难解决方法(0)

visual studio 2012 RC无法加载System.Web.Http.RouteParameter类型

我在我的电脑上安装了VS 11 Beta,.net 4.5和MVC 4 beta.我刚下载了最新的RC,现在我在尝试运行Web项目时收到此错误消息.我尝试重新安装.net 4.5并卸载和树脂安装VS 12 RC,但这没有用.我尝试了这里的建议,但也没有用.

Could not load type 'System.Web.Http.RouteParameter' from assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
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.TypeLoadException: Could not load type 'System.Web.Http.RouteParameter' from assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Source Error:


Line 26:                 defaults: new { controller = "Home", …
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc-4 .net-4.5 visual-studio-2012

12
推荐指数
3
解决办法
2万
查看次数