ASP.NET MVC on IIS falls through to the static file handler

前端 未结 5 1476
抹茶落季
抹茶落季 2020-12-24 07:33

I have a problem with an ASP.NET MVC site.

These are the details:

  1. ASP.NET MVC 2
  2. ASP.NET 4 integrated pipeline
  3. IIS 7.5 on Windows Web
5条回答
  •  -上瘾入骨i
    2020-12-24 08:02

    I had the same problem when I installed IIS after installing Visual Studio, etc.

    I was able to fix the problem by changing my Web.config file, adding the runAllManagedModulesForAllRequests="true" to the tag:

    
        
            ...
        
     
    

    (More details/copied from here: http://www.west-wind.com/weblog/posts/2011/Mar/27/ASPNET-Routing-not-working-on-IIS-70)

提交回复
热议问题