MVC4升级MVC5导致原项目出错的解决方法

时间:2022-10-31 19:54:08

原文:MVC4升级MVC5导致原项目出错的解决方法

出现安全透明方法“WebMatrix.WebData.PreApplicationStartCode.Start()”尝试访问安。。。的错误,解决方法如下:

  1. Install-Package Microsoft.AspNet.WebPages.WebData
  2. Install-Package Microsoft.AspNet.WebPages.Data

具体可能原因及查考下网址:

http://*.com/questions/19169846/is-asp-net-mvc-5-incompatible-with-the-webmatrix-simplemembershipprovider