Skip to content

Instantly share code, notes, and snippets.

@neilgaietto
Created February 11, 2013 19:08
Show Gist options
  • Save neilgaietto/4756742 to your computer and use it in GitHub Desktop.
Save neilgaietto/4756742 to your computer and use it in GitHub Desktop.
Get the reason why your ASP.NET application is shutting down.
void Application_End(object sender, EventArgs e)
{
var reason = System.Web.Hosting.HostingEnvironment.ShutdownReason;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment