After reinstalling iis unable to start debugging on the web server. the remote server returned an error: (404) not found.`
After reinstalling iis unable to start debugging on the web server. the remote server returned an error: (404) not found.`
由于某些其他原因重新安装 IIS 后,我现在无法使用 'local 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.config
RequestFiltering 设置为允许。
<configSections>
<sectionGroup name="system.webServer">
<sectionGroup name="security">
<section name="requestFiltering" overrideModeDefault="Allow" />
</sectionGroup>
</sectionGroup>
</configSections>
我检查了调试器日志。没有给出任何线索。
%UserProfile%\AppData\Local\Temp\Visual 工作室网络 Debugger.log
它显示
IIS 10.0 Detailed Error - 404.6 - Not Found
以及一些 html 内容。那是它提到请求过滤的地方,但看起来不错。
我不确定是什么破坏了调试功能。
折腾了一段时间,找到了解决办法。
- 在 iis 中,在默认网站下,select 左侧窗格中的应用程序名称。
- 双击中间窗格中的“请求筛选”。
- 单击右侧窗格中的“编辑功能设置”。
- 勾选'Allow unlisted verbs'
成功了。
就我而言 (Windows 10 & Visual Studio 2017) 我必须安装 ASP.NET 3.5 和 ASP.NET4.7下的Internet信息服务
点击开始菜单,然后运行
输入appwiz.cpl然后点击确定
单击打开或关闭Windows 功能
转到 Internet 信息服务 -> 万维网服务 -> 应用程序开发功能并检查 .NET Extensibility 3.5 和 .NET Extensibility 4.7,然后单击确定。
关闭 Visual Studio,然后重新打开。
由于某些其他原因重新安装 IIS 后,我现在无法使用 'local 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.config RequestFiltering 设置为允许。
<configSections>
<sectionGroup name="system.webServer">
<sectionGroup name="security">
<section name="requestFiltering" overrideModeDefault="Allow" />
</sectionGroup>
</sectionGroup>
</configSections>
我检查了调试器日志。没有给出任何线索。 %UserProfile%\AppData\Local\Temp\Visual 工作室网络 Debugger.log 它显示
IIS 10.0 Detailed Error - 404.6 - Not Found
以及一些 html 内容。那是它提到请求过滤的地方,但看起来不错。
我不确定是什么破坏了调试功能。
折腾了一段时间,找到了解决办法。
- 在 iis 中,在默认网站下,select 左侧窗格中的应用程序名称。
- 双击中间窗格中的“请求筛选”。
- 单击右侧窗格中的“编辑功能设置”。
- 勾选'Allow unlisted verbs'
成功了。
就我而言 (Windows 10 & Visual Studio 2017) 我必须安装 ASP.NET 3.5 和 ASP.NET4.7下的Internet信息服务
点击开始菜单,然后运行
输入appwiz.cpl然后点击确定
单击打开或关闭Windows 功能
转到 Internet 信息服务 -> 万维网服务 -> 应用程序开发功能并检查 .NET Extensibility 3.5 和 .NET Extensibility 4.7,然后单击确定。
关闭 Visual Studio,然后重新打开。