【发布时间】:2018-08-06 14:46:45
【问题描述】:
由于其他原因重新安装 IIS 后,我现在无法使用“本地 IIS”选项在 Visual Studio 中调试 asp.net 应用程序。 在重新安装 IIS 之前,一切正常。
这是我遇到的错误。 无法在 Web 服务器上开始调试。远程服务器返回错误:(404) not found.`
我检查了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.config RequestFiltering 设置为允许。
<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 详细错误 - 404.6 - 未找到
还有一些 html 内容。那是它提到请求过滤的地方,但看起来不错。
我不确定是什么破坏了调试功能。
【问题讨论】:
-
你试过在管理员模式下运行VS吗?
-
您可能还需要重置 IIS。您可以通过打开管理员命令提示符并键入 iisreset 来执行此操作,或者您可以在 IIS 管理中执行此操作,有关此文档的更多信息:msdn.microsoft.com/en-us/library/dwesw3ee.aspx
标签: asp.net iis visual-studio-2015