Home > Asp.net, Debugging > How to avoid “The web server process that was being debugged has been terminated by IIS”

How to avoid “The web server process that was being debugged has been terminated by IIS”

Problem:

When debugging asp.net by attaching w3wp.exe process, you often will see encounter the following error message, the web server process that was being debugged has been terminated by IIS.

Analysis:

This caused Internet Information Services (IIS) to assume that the worker process had stopped responding. Therefore, IIS terminated the worker process.

Solution:

1. Open IIS manager.

2.Click application Pools>>select the application pool associated with the site>>and click Advanced Settings

3. Click Advanced Settings of the application pool and set the Ping Enabled property from True to False.

Now, reattach the process from Visual Studio, you should not get the error message.

References:

msdn

Advertisements
Categories: Asp.net, Debugging Tags: , , ,
  1. Tahir Hassan
    November 21, 2012 at 1:58 am

    Microsoft has documentation for this:

    http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k(VS.DEBUG.ERROR.WEB_SERVER_PROCESS_TERMINATED);k(TargetFrameworkMoniker-%22.NETFRAMEWORK%2cVERSION%3dV3.5%22);k(DevLang-CSHARP)&rd=true

  1. April 7, 2012 at 3:56 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: