Diagnosing IIS Shutdowns
Posted
by Tom Ritter
on Stack Overflow
See other posts from Stack Overflow
or by Tom Ritter
Published on 2010-05-20T15:33:10Z
Indexed on
2010/05/20
15:50 UTC
Read the original article
Hit count: 295
Symptoms:
- I attach a debugger, I wait a little while, it automatically detaches
- I watch the event log during normal operation - after a single request comes in, it waits a little bit, the shuts down
Disagnosing. I've followed the following steps for logging shutdowns in IIS:
- http://weblogs.asp.net/scottgu/archive/2005/12/14/433194.aspx
- http://blogs.msdn.com/tess/archive/2006/08/02/asp-net-case-study-lost-session-variables-and-appdomain-recycles.aspx
I know these are working because...
What I see in the Event Logs when I change the web.config:
The description for Event ID 0 from source ASP.NET 2.0.50727.0 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved with the event. The following information was included with the event: _shutdownMessage=IIS configuration change HostingEnvironment initiated shutdown CONFIG change CONFIG change HostingEnvironment caused shutdown _shutdownStack= at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal() at System.Web.Hosting.HostingEnvironment.InitiateShutdown() at System.Web.Hosting.PipelineRuntime.StopProcessing() the message resource is present but the message is not found in the string/message table
But it doesn't help because the mysetery error doesn't tell me anything. I see the same thing as from before I added this extra logging:
The description for Event ID 0 from source ASP.NET 2.0.50727.0 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved with the event. The following information was included with the event: _shutdownMessage=HostingEnvironment initiated shutdown HostingEnvironment caused shutdown _shutdownStack= at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal() at System.Web.Hosting.HostingEnvironment.InitiateShutdown() at System.Web.Hosting.PipelineRuntime.StopProcessing() the message resource is present but the message is not found in the string/message table
Anyone have any ideas for more debugging?
© Stack Overflow or respective owner