Gan*_*shT 4 asp.net iis visual-studio-2015
由于其他原因重新安装 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>
Run Code Online (Sandbox Code Playgroud)
检查 C:\Windows\System32\inetsrv\config 上的 applicationHost.config 请求过滤设置为允许。
<configSections>
<sectionGroup name="system.webServer">
<sectionGroup name="security">
<section name="requestFiltering" overrideModeDefault="Allow" />
</sectionGroup>
</sectionGroup>
</configSections>
Run Code Online (Sandbox Code Playgroud)
我检查了调试器日志。不给任何线索。%UserProfile%\AppData\Local\Temp\Visual Studio Web Debugger.log 它显示
IIS 10.0 详细错误 - 404.6 - 未找到
以及一些html内容。这就是它提到请求过滤的地方,但这看起来不错。
我不确定是什么破坏了调试功能。
Hus*_*ish 11
就我而言(Windows 10 和 Visual Studio 2017),我必须在Internet Information Services下安装ASP.NET 3.5和ASP.NET 4.7
点击开始菜单,然后运行
编写appwiz.cpl并单击确定
单击打开或关闭 Windows 功能
转到Internet信息服务- >万维网服务- >应用程序开发功能和检查的.NET扩展3.5和.NET扩展性4.7,然后单击确定。
关闭 Visual Studio,然后重新打开它。
归档时间: |
|
查看次数: |
3211 次 |
最近记录: |