Topic: IIS App Domain restarting unexpectedly
I have web application hosted on IIS. Asp.Net application with handlers made of "HttpTaskAsyncHandler" implemented.
We recently facing the where the IIS App domain getting restarted automatically with out anything configured on iis level.
- No error logs in application level, but it was clear that the application restarted and initialized
- No error logs in EventViewer
- No sign of app pool recycle.
- Process Id not changed after getting restarted.
- No logs event after enabling all possible logs on App pool advanced settings
- DebugDiag not capturing this as crash.
We are clueless on this and the issue started recently only.
Can you advice how to debug/fix this issue.
Author: DIVYA
FRAUSKY
So it doesn't seems an application pool recycling. To start with which bad behavior do you see when it happens? This is following a code change?.
Edit: "It was clear that the application restarted and initialized" How do you know that?. Actually it is even excepted if the application is idle for more than 20 minutes by default if I remember.
PARTH
Please check the recycling setting of the application pool -
1. Open IIS
2. Click Application Pools
3. Select an application pool
4. Click Advanced Settings…
5. Check the Recycling section
If you do some changes in the web.config file, the website will restart. Also changing the settings in the IIS will also lead to restarting of the website.