gpt4 book ai didi

asp.net - 重新安装iis后无法在Web服务器上开始调试。远程服务器返回错误 : (404) not found.`

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

由于其他原因重新安装 IIS 后,我现在无法使用“本地 IIS”选项在 Visual Studio 中调试 ASP.NET 应用程序。在重新安装 IIS 之前,一切正常。

这是我收到的错误。无法在 Web 服务器上启动调试。远程服务器返回错误:(404) 未找到。`

我检查了web.config,调试是正确的

<system.web>
<authentication mode="None"/>
<compilation debug="true" targetFramework="4.5"/>
<httpRuntime/>
<pages controlRenderingCompatibilityVersion="4.0"/>
</system.web>

检查了 C:\Windows\System32\inetsrv\config 上的 applicationHost.configRequestFiltering 设置为“允许”。

<configSections>
<sectionGroup name="system.webServer">
<sectionGroup name="security">
<section name="requestFiltering" overrideModeDefault="Allow" />
</sectionGroup>
</sectionGroup>
</configSections>

我检查了调试器日志。没有给出任何线索。%UserProfile%\AppData\Local\Temp\Visual Studio Web Debugger.log显示

IIS 10.0 Detailed Error - 404.6 - Not Found

以及一些 html 内容。这就是它提到请求过滤的地方,但这看起来不错。

我不确定什么会破坏调试功能。

最佳答案

就我而言(Windows 10 和 Visual Studio 2017),我必须在 Internet Information Services< 下安装 ASP.NET 3.5ASP.NET 4.7/strong>

单击“开始”菜单,然后单击“运行”

编写appwiz.cpl并单击确定

enter image description here

点击打开或关闭 Windows 功能

enter image description here

转至 Internet 信息服务 -> 万维网服务 -> 应用程序开发功能并检查.NET 可扩展性 3.5.NET 可扩展性 4.7,然后单击“确定”。

enter image description here

关闭 Visual Studio,然后重新打开它。

关于asp.net - 重新安装iis后无法在Web服务器上开始调试。远程服务器返回错误 : (404) not found.`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49000470/

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