Expert question - Cancel Application_Start

  • Thread starter Thread starter AW
  • Start date Start date
A

AW

Hi all,

In my Application_Start, I'm initializing the application. ASP.Net calls my
Application_Start on the first request, not on the following ones.

However, if something goes wrong in my Application_Start I want to be able
to tell ASP.Net that the application wasn't started correctly so that it
calls my Application_Start on the next request.

Is this possible?

Thanks,
Arnaud
 
Arnaud,

Use a Try/Catch routine in application start to run the code of your choice
if an exception occurrs during application startup.

Try
'---Application startup code
Catch ex As Exception
'---Code to execute if application startup fails
End Try

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
 
Back
Top