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

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

    Add this in your web.config (in the appSettings section):

    
    
    

    EDIT:

    For the ones who ask why, it is a known issue described in the mvc 3 release notes More details here

提交回复
热议问题