简体   繁体   English

在本地IIS服务器上调试ASP.NET应用程序

[英]Debugging an ASP.NET application on Local IIS Server

I have setup a local IIS instance to run and development an older ASP.NET (CLR v4.0) application that I have inherited. 我已经设置了本地IIS实例,以运行和开发继承的较旧的ASP.NET(CLR v4.0)应用程序。

I am running it an a virtual directory, and I am able to attach to the IIS process and debug it (annoying). 我正在运行一个虚拟目录,并且能够附加到IIS进程并对其进行调试(讨厌)。 However, I am unable to "F5" in Visual Studio to start debugging. 但是,我无法在Visual Studio中“ F5”开始调试。 I get an error message saying "The web server could not find the requested resource." 我收到一条错误消息,提示“ Web服务器找不到请求的资源。”

I have went through all of the Microsoft advice on their help page without much luck. 我在他们的帮助页面上浏览了所有Microsoft建议,但运气不佳。 Am I naive in thinking that this will work, or am I missing something? 我是否天真地以为这会起作用,还是我错过了一些东西? I even installed the IIS 6 Metabase compatibility, but that did not seem to help either. 我什至安装了IIS 6 Metabase兼容性,但这似乎也无济于事。

I realize that I probably need to give more information, but I don't know what other details I need to add. 我意识到我可能需要提供更多信息,但是我不知道需要添加哪些其他细节。

This is running on Windows 8.1 Enterprise with IIS 8, and I am using Visual Studio Professional. 它在带有IIS 8的Windows 8.1 Enterprise上运行,而我正在使用Visual Studio Professional。 Thanks 谢谢

MYSTERY SOLVED!!!!!!!!! 谜团已揭开!!!!!!!!!

Apparently, Request filtering is installed by default. 显然,默认情况下已安装了请求过滤。 In order for debugging to work, you have to go the virtual directory -> Request filtering -> Http Verbs, and allow verb DEBUG. 为了进行调试,您必须转到虚拟目录->请求过滤-> Http动词,并允许动词DEBUG。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM