架构师_程序员_码农网

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 8191|回复: 0

[ASP.NET] HTTP 错误 403.14 - Forbidden错误

[复制链接]
发表于 2016-1-14 16:29:10 | 显示全部楼层 |阅读模式
QQ截图20160114162730.jpg

Things you can try:
If you do not want to enable directory browsing, ensure that a default document is configured and that the file exists.
Enable directory browsing.
Go to the IIS Express install directory.
Run appcmd set config /section:system.webServer/directoryBrowse /enabled:true to enable directory browsing at the server level.
Run appcmd set config ["SITE_NAME"] /section:system.webServer/directoryBrowse /enabled:true to enable directory browsing at the site level.
Verify that the configuration/system.webServer/directoryBrowse@enabled attribute is set to true in the site or application configuration file.

可尝试的操作:

如果不希望启用目录浏览,请确保配置了默认文档并且该文件存在。
启用目录浏览。

转到 IIS Express 安装目录。
运行appcmd set config /section:system.webServer/directoryBrowse /enabled:true以在服务器级别启用目录浏览。
运行appcmd set config ["SITE_NAME"] /section:system.webServer/directoryBrowse /enabled:true以在网站级别启用目录浏览。

确认网站或应用程序配置文件中的 configuration/system.webServer/directoryBrowse@enabled 属性已设置为 true。


最可能的原因:

没有为请求的 URL 配置默认文档,并且没有在服务器上启用目录浏览。



说白了,就是没有默认起始页!!




上一篇:在互联网看到了许多泡沫
下一篇:.net版财付通支付接口sign加密方式
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

免责声明:
码农网所发布的一切软件、编程资料或者文章仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。如有侵权请邮件与我们联系处理。

Mail To:help@itsvse.com

QQ|手机版|小黑屋|架构师 ( 鲁ICP备14021824号-2 )|网站地图

GMT+8, 2024-4-25 08:36

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表