Pages

Sunday 24 March 2013

How to increase the timeout for an app pool when attaching from Visual Studio

As a developer you have to attach to the w3wp process from Visual studio to debug your code. This is straight forward, from Visual studio > tools > Attach to Process. (Note: To find the correct w3wp process, refer to this post)

But the problem is that you never have enough time to step through your code as the pool recycles. In order to increase the time so the process is attached and you get a lot longer to debug your code, follow these steps:

  1. In your development environment, open server manager or open IIS manager
  2. Under application pools > right the correct app pool and click on advanced settings > Change these 2 settings:
  3. Ping Enabled: Set this to False and Ping Maximum Response Time (seconds): Set this to 4294967 (which is the highest you can set)

And that's it, now you will see that you can attach to correct process for lot longer.

No comments:

Post a Comment