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