HTTP 错误 403.14 - Forbidden Web 服务器被配置为不列出此目录的内容


一、错误

HTTP 错误 403.14 - Forbidden Web 服务器被配置为不列出此目录的内容,如图所示:

 

二、解决方法:

1、在web.config中加:<modules runAllManagedModulesForAllRequests="true"/>

需要在modules配置中添加属性runAllManagedModulesForAllRequests,还有.net的版本,如图所示:

 

 

2、重新注册一下.net framework4.0(HTTP 错误 500.21 - Internal Server Error )

32位的Windows:
---------------------------------------------------------------------------
1. 运行->cmd 

2. cd  C:\Windows\Microsoft.NET\Framework\v4.0.30319

3. aspnet_regiis.exe -i

 

64位的Windows:
---------------------------------------------------------------------------
1. 运行->cmd 

2. cd  C:\Windows\Microsoft.NET\Framework64\v4.0.30319

3. aspnet_regiis.exe -i

 

 

 

参考地址:https://blog.csdn.net/sinat_34719507/article/details/63918365


免责声明!

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



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