asp.net mvc4 HTTP Error 403.14


asp.net mvc4项目部署到II&上时,出现
HTTP Error 403.14 - Forbidden - The Web server is configured to not list the contents of this directory.
在web.config的system.webServer节点中
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
如果这个modules不存在,那么加上就好了。原因是Nuget有时会删除这个节点。
参见http://stackoverflow.com/questions/1741439/asp-mvc-in-iis-7-results-in-http-error-403-14-forbidden


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM