ASP.NET MVC on IIS 7.5

前端 未结 28 2287
北荒
北荒 2020-11-22 11:33

I\'m running Windows 7 Ultimate (64 bit) using Visual Studio 2010 RC. I recently decided to have VS run/debug my apps on IIS rather than the dev server that comes with it. <

28条回答
  •  日久生厌
    2020-11-22 12:10

    Make sure you have is the following set in your web.config:

    
         
    
    

    Better solution:

    Even though above solution works absolutely fine, it can cause other problem as it runs all your registered HTTP modules on every request (even on every request of .jpg .gif .css .html .pdf etc) and it is obviously waste of resource. Instead

    
    
      
      
    
    
    

    Make sure preCondition attribute is empty means it will run on all requests. [Read more](http://www.britishdeveloper.co.uk/2010/06/dont-use-modules-runallmanagedmodulesfo.html,"Read original post")

提交回复
热议问题