gpt4 book ai didi

c# - HTTP 错误 403.14 - 禁止调试 ASP.NET Web 应用程序

转载 作者:行者123 更新时间:2023-12-02 04:00:12 25 4
gpt4 key购买 nike

我正在尝试启动 ASP.NET Web 应用程序

但是我在调​​试时遇到了这个错误:

HTTP Error 403.14 - Forbidden The Web server is configured to not list
the contents of this directory.

Module
   DirectoryListingModule
Notification
   ExecuteRequestHandler
Handler
   StaticFile
Error Code
   0x00000000

不确定这是否正是我必须做的,但正如它所示,我必须遵循此 instruction但是当我试图打开 IIS Manager在 Windows 10 上,它表示 Windows 找不到“inetmgr”或“inetmgr.exe”

所以不确定我必须做什么才能解决这个错误。

最佳答案

因为您似乎没有安装完整的 IIS,请尝试将其添加到位于您要浏览的目录中的 web.config 中:

<system.webServer>
<directoryBrowse enabled="true"/>
</system.webServer>

...至少这样您就可以解决这个问题。如果您这样做是为了调试,那很好,但是您必须认真考虑这是否真的是您想要在生产服务器上允许的。

关于c# - HTTP 错误 403.14 - 禁止调试 ASP.NET Web 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42262993/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com