VS.NET 2005 Debugger Timeout with IIS 7.0

windows vista iis7部署站点,进行调试的时候,经常会出现 debugger time-out, 这个是由于应用程序池配置的问题。

 

1.     打开应用程序池—高级配置:

  VS.NET 2005 Debugger Timeout with IIS 7.0_第1张图片

2.     启用Ping 设置为false.这样就可以保证进程一直处于调试状态。

 VS.NET 2005 Debugger Timeout with IIS 7.0_第2张图片

3.     Ping默认的最大响应时间是90s,你也可以设置的更长一些。

 

原文:

ASP.NET Debugger Timeout In Windows Vista
When I first installed Windows Vista with IIS 7 I have started to notice that ASP.NET debugger tends to time-out very often. Previously I hadn't noticed such a behavior when I was using Windows 2003 with IIS 6. I really cannot tell if it was there or not, because I sometimes tend to dismiss this kind of issues if they are not very painful.

Sometimes however the debugger timeout IS painful. Fortunately the problem is easily solved. I have found the solution provided by jshallard on ASP.NET's forum:

In IIS 7 go to the Application Pools and select the Advanced Settings for the pool which you process runs in. In the Process Model section you can do one of two things;
    * Set the Ping Enabled property to False. This will stop IIS checking to see if the worker process is still running and keep your process alive permanently (or until you stop your debugged process)
    * If you prefer to allow IIS to continue the monitoring process then change the Ping Maximum Response Timeout value to something larger than 90 seconds (default value).

I've tried the second option and it worked.

地址:

http://vaultofthoughts.net/ASPNETDebuggerTimeoutInWindowsVista.aspx

你可能感兴趣的:(VS.NET 2005 Debugger Timeout with IIS 7.0)