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

前端 未结 5 1297
旧巷少年郎
旧巷少年郎 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:14

    Well, I just got this error, and it resulted from having accidentally copied a .cshtml into the root of my project. It wasn't even included in the project. Deleted that and the error went away. This was with MVC3 on IIS7. I imagine some of the people getting this problem are in the same boat.

提交回复
热议问题