IIS 自动断开调试问题

如果我们用IIS宿主ASP.net,单步调试时,会有可能下面的异常报出来:


Microsoft Visual Studio

The web server process that was being debugged has been terminated by Internet Information Services (IIS). This can be avoided by configuring Application Pool ping settings in IIS. See help for further details.

确定 帮助

这里的说的很明白,IIS默认会90秒定时Ping自己的进程,监控这个进程是否正常工作。如果这个ping打开的,调试ASP.net 可能就会被这个干扰。

解决的方法就是禁用掉定时Ping,或者把这个Ping的时间延迟很长。

原文地址:https://www.cnblogs.com/grpxiaoyu/p/6884235.html