Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Debugging Timing out with IIS

Finally broke down and seeking help, my client/iis (not sure which) usually times out after about 30s - 1 minute while im debugging (stepping through code) which not only causes me to lose my spot and have to start over (usually stepping faster, making more mistakes) but the IIS Debug session closes completely and I have to warm up the entire session again.

What's the best way to get more time out of a debugging session?

Debugging a vanilla 3.5 Web Site (not app) on IIS 7.5 Classic Pipeline

like image 557
Aren Avatar asked Apr 29 '10 23:04

Aren


People also ask

How do I debug a IIS process?

Right Click on Web Project → Properties → Start options → Use Custom Server → Base URL → Enter Site Address as Hosted in IIS. Hit F5 and you will be able to Debug your code.


1 Answers

Setting the connection limit works if you set it high enough. I wanted to never be bothered by this again. Here is what I did:

This assumes you've got an IIS App Pool selected in the IIS Manager

...In the Advanced Settings dialog box, locate the Process Model section, and perform one of the following actions:

  1. Set Ping Enabled to False.
  2. Set Ping Maximum Response Time to a value that is larger than 90 seconds.

Setting Ping Enabled to False stops IIS from checking whether the worker process is still running and keeps the worker process alive until you stop your debugged process. Setting Ping Maximum Response Time to a large value allows IIS to continue monitoring the worker process.

like image 116
Nick DeVore Avatar answered Sep 22 '22 09:09

Nick DeVore