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 said:
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