IIS application restart doesn't fire Application_Start() event

  • Thread starter Thread starter alexB
  • Start date Start date
A

alexB

On my ASP.NET application, restarting the application
through IIS doesn't always fire the Application_Start()
event. Is there a trick to this?

Restarting IIS is not an option since there are other
applications on the machine.
 
Hello,

Application_Start Fires when the first user hits your Web site.

I am not able to reproduce your problem on my side. Would you please show
me the steps to reproduce the problem?
 
I an ASP.NET application that connects to an Oracle
database using the OracleClient for .NET and also include
some Crystal Reports. After it starts, if I restart it
using IIS it appears to restart in IIS but actually it
never gets unloaded/reloaded because application start
doesn't fire. I know it doesn't fire because I have some
code that initializes application variables from a file in
that event and if I stop the app, make a change to the
file, and restart the app. The app still shows application
() variables that have the old values.
 
Hello,

Application_Start fires when the first user hits your Web site, and
Application_End fires when the last user in the site's session times out.

In which event, you make a change to the file? If in the Application_End,
then the change is made after the last session times out. If you hit the
web site again before the session times out. the change will not be saved
into the file.

Please let me know this is the case.

You can also create a simple web application to see if your problem still
persists in the simple one.

If you have any questions, please reply this post.
 
Back
Top