Full error:

Could not load type 'System.Web.HttpContextWrapper2' from assembly 'System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

[TypeLoadException: Could not load type 'System.Web.HttpContextWrapper2' from assembly 'System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.] System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) +0 System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) +36 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

处理办法:
检查开发用机是否安装了.NET 3.5 SP1,而MVC的web site使用的是MVC Preview 2。下载.NET 3.5 SP1,一切正常了。

相关文章:

  • 2022-12-23
  • 2021-06-21
  • 2021-10-03
  • 2021-05-16
  • 2021-11-23
  • 2021-12-29
  • 2021-07-02
猜你喜欢
  • 2022-01-15
  • 2021-08-24
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2021-11-08
  • 2021-10-17
相关资源
相似解决方案