ASP.NET: This method cannot be called during the application's pre-start initialization stage

前端 未结 5 1308
旧巷少年郎
旧巷少年郎 2020-11-27 11:02

I\'m trying to get an ASP.NET MVC 3 site running on IIS 6.0.

Currently when I request a page from the server it gives the following error:

Pa

5条回答
  •  眼角桃花
    2020-11-27 11:25

    After upgrading some of my applications from ASP.NET MVC3 to MVC4 I was getting this error. It was a result of the WebMatrix assemblies (WebMatrix.WebData.dll and WebMatrix.Data.dll). I removed those references and assemblies from the /bin directory and that took care of the issue.

提交回复
热议问题