The Web server is configured to not list the contents of this directory
2013-11-14 17:04
537 查看
今天碰到了一个很奇怪的问题,好好的网站发布到一台IIS7.5的服务器上就不能用了。一直在报这个错误。应用程序池,isapi映射都没问题,mvc3也装了,重装mvc3也不行,折腾了很长时间。
最后在这里找到了解决办法:
http://stackoverflow.com/questions/2374957/asp-net-mvc-on-iis-7-5
在web.config下添加如下配置
最后在这里找到了解决办法:
http://stackoverflow.com/questions/2374957/asp-net-mvc-on-iis-7-5
在web.config下添加如下配置
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
然后就ok了,过两天项目平稳上了线,好好看看这一块,看看到底是为什么。
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
相关文章推荐
- IIS7.5+win7 The Web server is configured to not list the contents of this directory
- IIS 7 The Web server is configured to not list the contents of this directory
- How to Fix “HTTP Error 403.14 – Forbidden The Web server is configured to not list the contents of this directory”
- The Web server is configured to not list the contents of this directory.
- Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information.
- unable to start debugging on the web server.The web server is not configured
- Unable to start debugging on the web server. The project is not configured to be debugged.
- Unable to start debugging on the web server. The project is not configured to be debugged.
- WCF分布式开发常见错误(23):This could be due to the fact that the server certificate is not configured properly with HTTP.SYS
- Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in
- the selected server is enabled,but is not configured properly.Deployment to it will not be permitted
- The application is not licensed to modify or create schema for this type of data 解决办法
- 警告: The web application [ROOT] appears to have started a thread named [Thread-48] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
- the selected server is enabled,but is not configured properly.Deployment to it will not be permitted
- Debug:This kind of launch is configured to openthe debug perspective when it解决办法
- web程序部署到Tomcat服务器报错Deployment is out ofdate due to changes in the underlying project contents...
- Java---This kind of launch is configured to open the debug perspective when it suspends
- HTTP Error 404.2 - Not Found The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server(转)
- 奇葩问题:This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved
- mySql主从配置出错:The server is not configured as slave; fix in config file or with CHANGE MASTER TO