A
Andrew
I have ASP.NET 2.0 application. I'm running some initialization code in
Application_Start() in Global.asax. If this code fails I would like to
shutdown the application completely. Meaning no page, or an error page is
returned to the user. I've tried HostingEnvironment.InitiateShutdown() but
it's async and still returns a page to the user. According to msdn this
method is equivalent to ApplicationManager.ShutdownApplication()
(http://msdn2.microsoft.com/en-US/li...cationmanager.shutdownapplication(VS.80).aspx).
My results are consistent with this.
Any ideas on how to programmatically shutdown an ASP.NET app are
appreciated.
Thanks,
Andrew
Application_Start() in Global.asax. If this code fails I would like to
shutdown the application completely. Meaning no page, or an error page is
returned to the user. I've tried HostingEnvironment.InitiateShutdown() but
it's async and still returns a page to the user. According to msdn this
method is equivalent to ApplicationManager.ShutdownApplication()
(http://msdn2.microsoft.com/en-US/li...cationmanager.shutdownapplication(VS.80).aspx).
My results are consistent with this.
Any ideas on how to programmatically shutdown an ASP.NET app are
appreciated.
Thanks,
Andrew