简体   繁体   English

重装 iis 后无法在 web 服务器上启动调试。 远程服务器返回错误:(404) 未找到。`

[英]After reinstalling iis unable to start debugging on the web server. the remote server returned an error: (404) not found.`

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.由于某些其他原因重新安装 IIS 后,我现在无法使用“本地 IIS”选项在 visual studio 中调试 asp.net 应用程序。 Before reinstalling IIS, everything was working fine.在重新安装 IIS 之前,一切正常。

This is the error I'm getting.这是我得到的错误。 unable to start debugging on the web server.无法在 Web 服务器上开始调试。 the remote server returned an error: (404) not found.`远程服务器返回错误:(404) 未找到。`

I checked the web.config, debug is true我检查了 web.config,debug 是真的

<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.检查 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>

I checked the debugger log.我检查了调试器日志。 Doesn't give any clue.没有给出任何线索。 %UserProfile%\AppData\Local\Temp\Visual Studio Web Debugger.log It shows %UserProfile%\AppData\Local\Temp\Visual Studio Web Debugger.log 它显示

IIS 10.0 Detailed Error - 404.6 - Not Found IIS 10.0 详细错误 - 404.6 - 未找到

along with some html content.以及一些html内容。 That's where it mentioned about Request Filtering, but that looks good.那就是它提到请求过滤的地方,但这看起来不错。

I'm not sure what could have ruined the debugging feature.我不确定是什么破坏了调试功能。

In my case (Windows 10 & Visual Studio 2017) I had to install ASP.NET 3.5 and ASP.NET 4.7 under the Internet Information Services就我而言(Windows 10 和 Visual Studio 2017)我必须在Internet Information Services下安装ASP.NET 3.5ASP.NET 4.7

Click on start menu, then Run点击开始菜单,然后运行

Write appwiz.cpl and click Ok编写appwiz.cpl然后点击Ok

在此处输入图像描述

Click on Turn Windows features on or off单击打开或关闭 Windows 功能

在此处输入图像描述

Go to Internet Information Services -> World Wide Web Services -> Application Development Features and check the .NET Extensibility 3.5 and .NET Extensibility 4.7 , then click Ok.转到 Internet Information Services -> World Wide Web Services -> Application Development Features 并检查.NET Extensibility 3.5.NET Extensibility 4.7 ,然后单击 Ok。

在此处输入图像描述

Close the Visual Studio, and then reopen it.关闭 Visual Studio,然后重新打开它。

After struggling for a while, found the solution.折腾了一阵子,找到了解决办法。

  1. In iis, under Default Web Site, select the application name on the left pane.在 iis 中,在默认网站下,选择左窗格中的应用程序名称。
  2. Double click Request Filtering on the middle pane.双击中间窗格中的 Request Filtering。
  3. Click on Edit Feature Settings on the right pane.单击右侧窗格中的编辑功能设置。
  4. Check 'Allow unlisted verbs'选中“允许未列出的动词”

It worked.有效。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在 Web 服务器上开始调试。 远程服务器返回错误:(404) 未找到。 在 Visual Studio 中启动调试时出错 - Unable to start debugging on the web server. The remote server returned an error: (404) Not Found. Error when starting debug in Visual Studio VS 2015错误无法在Web服务器上启动调试。 远程服务器返回错误:(403)禁止 - VS 2015 Error unable to start debugging on the web server. remote server returned an error:(403) forbidden 无法在Web服务器上启动调试。 远程服务器返回错误:(403)禁止 - Unable to start debugging on the web server. The remote server returned an error: (403) Forbidden 无法在Web服务器上启动调试。 - Unable to start debugging on the web server. 无法在 Web 服务器上开始调试。 无法连接到网络服务器 - Unable to start debugging on the web server. Unable to connect to the webserver 无法在 Web 服务器上开始调试。 Visual Studio 2019 远程调试器 (MSVSMON.EXE) 未出现 - Unable to start debugging on the web server. The Visual Studio 2019 Remote Debugger (MSVSMON.EXE) does not appear 远程服务器返回错误:(404)找不到。 使用Facebook图形API时 - The remote server returned an error: (404) Not Found. when using facebook graph api 无法在Web服务器上开始调试。 Visual Studio 2008年 - Unable to start debugging on the Web Server. Visual Studio 2008 无法在Web服务器上启动调试。 操作超时 - Unable to start debugging on the web server. The operation timed out 无法在Web服务器上启动调试。 该地址对此上下文无效 - Unable to start debugging on the web server. The address is not valid for this context
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM