Restarting an Application is not doable
on the .Net Framework 1.0 nor 1.1.
In the .Net Framework 2.0, you can call Application.Restart()
For 1.0 and 1.1, you might be able to devise a workaround
which would consist of a System.IO call to "touch" your
global.asax file.
That would, in fact, restart your 1.0 or 1.1 application..
You should be careful if you want this to happen without
your intervention, whether by simply opening global.asax
in any editor and re-saving the file so that the file's date
is updated, or by running a web page which does that
( if you do that, make sure it's a password-protected page ).
The reason is that you could be starting an endless loop
( an error occurs, so the application is restarted, which
leads to the error occurring again, looping until you notice it... )
Juan T. Llibre
ASP.NET MVP
===========
"Eric Dan" <no****@stopspamming.com> wrote in message
news:A7**********************************@microsof t.com...
Thanks. But I didn't really understand the answer.
Calling my implementation of the event "Application_End" will have no
effect
on the system. Did you mean calling another method?
Assuming that I have decided to stop the ASP.NET application what exact
method should I call?
Eric
"John Timney (ASP.NET MVP)" wrote:
You could try to add a check in session_on start to call the applications
on
end event under a certain set criteria, that would allow app start to
conclude cleanly and should terminate your application.
--
Regards
John Timney
ASP.NET MVP
Microsoft Regional Director
"Eric Dan" <no****@stopspamming.com> wrote in message
news:C0**********************************@microsof t.com... > If I would like to stop an ASP.NET application after some
> initialization
> error during the "Application_Start" event (which I have caught within
> a
> catch clause) - what is the right way to do it?
> --
> Thanks
> Eric