IIS 7 Not Serving Default Document

前端 未结 6 1998
盖世英雄少女心
盖世英雄少女心 2020-12-08 16:06

We have a problem occuring on some of our developer workstations: when visiting a URL without a filename (e.g. http://localhost/), IIS 7 returns a 404 error

6条回答
  •  有刺的猬
    2020-12-08 16:17

    It looks like Microsoft released an update that enables the ExtensionlessURL HTTP handler to work with extensionless URLs. Unfortunately, this breaks certain other handlers. In my case, the DefaultDocument handler under classic app pools. The solution is to remove the ExtensionlessURL handlers in our application's web.config:

    
      
        
        
        
      
    
    

提交回复
热议问题