Click here to Skip to main content
15,890,185 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello Guys,


I have a website which hosted on windows 2008 server and .net framework 2.0. There are many websites but one website's application fool stops suddenly and i don't even know untill i browse the website and this happening every 10 days or 5 days sometimes 20 days or more.
How to find out why it is stopping on its own , and is there a way i add something to my application or to the IIS , so i recieve a email, when the application pools stops.

Thanks guys.
Posted
Comments
Timberbird 14-Nov-11 3:19am    
Have you checked Event Log and IIS log files? Are there any errors that may refer to the application pool's work?
shekhardumala 14-Nov-11 4:00am    
Yes, I found nothing in the logs.

IIS stops Application-Pool when number of failures(related to that Application-Pool) exceeds value of "Maximum Failures" Property set into the "Advanced Settings" of that Application-Pool. You may review cause of failures of your Application in "Event Viewer" of the Server.

Ideally you should rectify cause of your application failures and fix them, If you do not want your IIS to stop your Application-Pool then you may follow below steps.

1) Open IIS.
2) Right click on your Application-Pool and select "Advanced Settings".
3) Set "Rapid-Fail Protection" -> "Enabled" to False.
 
Share this answer
 
Comments
Shyam Raghuvanshi 27-Feb-13 0:56am    
What is the correct solution to track and resolve this type of errors.
Regards
Shyam
RaisKazi 27-Feb-13 14:34pm    
Answers to your question is in first paragraph of my above Solution. You can see details of failure in "Event Viewer" of your Web Server.
While there may be several reasons why this may occur, in this specific case, the 503 error was occurring because the Application pool failed to start. This was because the password was changed recently for the Identity under which the application pool was trying to run. Fix was to go to the IIS Manager-> Application Pool -> Advanced Settings -> Process Model -> Identity and set the password to the new one.

It would also help to check the Event Viewer Logs(Event Viewer (Local) -> Windows Logs -> Application to look for specific causes of failure before proceeding to troubleshoot any further.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900