重新安装后,iis无法在Web服务器上启动调试.远程服务器返回错误:(404)未找到. [英] After reinstalling iis unable to start debugging on the web server. the remote server returned an error: (404) not found.`

查看:1349
本文介绍了重新安装后,iis无法在Web服务器上启动调试.远程服务器返回错误:(404)未找到.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于其他原因重新安装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.config RequestFiltering设置为Allow.

<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内容.这就是它提到的请求过滤"的地方,但是看起来不错.

我不确定是什么破坏了调试功能.

解决方案

挣扎了一段时间后,找到了解决方法.

  1. 在iis中的默认网站"下,在左窗格中选择应用程序名称.
  2. 双击中间窗格上的请求过滤".
  3. 单击右侧窗格上的编辑功能设置".
  4. 选中允许不公开动词"

有效.

After I reinstalled IIS for some other reason, I'm now unable to debug asp.net applications in visual studio using the 'local IIS' option. Before reinstalling IIS, everything was working fine.

This is the error I'm getting. unable to start debugging on the web server. the remote server returned an error: (404) not found.`

I checked the web.config, debug is true

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

Checked the applicationHost.config on C:\Windows\System32\inetsrv\config The RequestFiltering is set to Allow.

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

I checked the debugger log. Doesn't give any clue. %UserProfile%\AppData\Local\Temp\Visual Studio Web Debugger.log It shows

IIS 10.0 Detailed Error - 404.6 - Not Found

along with some html content. That's where it mentioned about Request Filtering, but that looks good.

I'm not sure what could have ruined the debugging feature.

解决方案

After struggling for a while, found the solution.

  1. In iis, under Default Web Site, select the application name on the left pane.
  2. Double click Request Filtering on the middle pane.
  3. Click on Edit Feature Settings on the right pane.
  4. Check 'Allow unlisted verbs'

It worked.

这篇关于重新安装后,iis无法在Web服务器上启动调试.远程服务器返回错误:(404)未找到.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆