473,396 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

IIS application restart doesn't fire Application_Start() event

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
3 7774
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: localhost | last post by:
In the Application_OnStart, I make some data calls and place the results in the HTTP cache. Sometimes, the database is not available when the application starts up, so I want to sleep for 20...
3
by: SL | last post by:
All, As I understand it, a single application (i.e. IIS virtual directory) in ASP.NET may in fact have more than one corresponding HttpApplicationState object (more or less one per server...
6
by: jim | last post by:
Hi All, I like to know the life cycle of an ASP .NET Application( incudieng server application, such as .NET Web Service). That means from initialization to fully running and how to reboot it or...
5
by: Eric Dan | last post by:
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?...
3
by: ad | last post by:
I want to renew all values of Application and Session. How can I restart application in program?
1
by: Jordan R. | last post by:
In order to restart and ASP.NET Web application - the only way I'm aware of is to save a change to the app's Web.config file. By "restart" I'm meaning to get the Application_Start event to fire. ...
3
by: alexB | last post by:
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...
4
by: =?Utf-8?B?bWFzbWl0aA==?= | last post by:
Can you restart an ASP.NET application in the Application_Start event when an error occurs so the next request for the application will fire the Application_Start event again? This would allow...
1
by: nicerun | last post by:
I'm using the Application_Start event at Global.asax.cs to invoke thread that do some job. I know that Application_Start event occurs when the very first request to Web Application received. -...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.