Tuesday, July 23, 2013

Web site worker process has been terminated by IIS error

 Web site worker process has been terminated by IIS error

You receive the below error
" Web site worker process has been terminated by IIS with error message" while you are debugging the solutions


This is because of the default timeout setting which is 90 seconds for the corresponding worker process (w3sp.exe).

In order to debug for more time without any error message follow the below steps.

  1. Go to IIS Manager (Run-> inetmgr)
  2. Expand the leftside tree view and click on the Application Pools
  3. Select the corresponding application pool for the worker process you have attached in the visual studio while debugging
  4. Click on the “Advanced Settings” in the right side of the pane.
  5. Locate the Process Model section in the advanced settings dialog box
  6. Set Ping Enabled to False.
  7. Set Ping Maximum Response Time to a value that is larger than 90 seconds say 300 seconds.
  8. Setting the “Ping Enabled” to False stops the IIS from checking whether the worker process is still running and keeps the worker process alive until you have stopped debugging the process.
  9. Click OK 

No comments:

Post a Comment