I'm doing performance testing for my MVC internet application using IIS 7.0
Sometimes the application pool stops and I get an error saying "service unavailable" in my browser. I then have to restart the pool.
Why is the pool automatically stopped, and how can I solve this problem?
update And my log file has : "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\webengine4.dll returned an error from registration. The data is the error."
Application pool '96eb1b47a3694bbd99fd7d148ab4151d' is being automatically disabled due to a series of failures in the process(es) serving that application pool. A process serving application pool '96eb1b47a3694bbd99fd7d148ab4151d' suffered a fatal communication error with the Windows Process Activation Service.
In Event Viewer, expand the "Application and Services Logs" section. Then expand "Microsoft, then "Windows". Then expand "IIS-Configuration, right-click on "Operational", and choose "Enable Log". Now this log will receive events whenever an application pool is stopped or started via the IIS Management GUI.
Open Internet Information Services (IIS) Manager. In the Connections pane, select the Application Pools node, revealing the Application Pools pane in the main view. Select the application pool for which you wish to enable Auto-Start. Locate the Start Mode option under the General group and set it to AlwaysRunning.
The application pool stops when it can't recover from an error/crash. Look at the Event Viewer under Windows Logs > Application to see the exception(s) that caused the crash. The Source column will mention something like ASP.NET 4.0.30319.0
Well, I encounter also this problem and this is what I do.
1) Open IIS.
2) Right click on your Application-Pool for the web application and select "Advanced Settings".
3) Set "Rapid-Fail Protection" -> "Enabled" to False.
If this is true, the Application pool is shut down if there are a specified number of worker process crashes within a specified time period. By default, an application pool is shutdown if there are 5 crashes within a 5 minutes interval.
I read the answer in this link [https://sharepoint.stackexchange.com/questions/22885/application-pool-is-auto-stopped-when-browse-web-application-in-iis7]
hope that this will give help to others.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With