By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,341 Members | 1,396 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,341 IT Pros & Developers. It's quick & easy.

IIS application restart doesn't fire Application_Start() event

P: n/a
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.
Jul 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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?

--
Parker Zhang
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 19 '05 #2

P: n/a
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.
-----Original Message-----
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 showme the steps to reproduce the problem?

--
Parker Zhang
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
.

Jul 19 '05 #3

P: n/a
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.

--
Parker Zhang
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.