473,657 Members | 2,559 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS application restart doesn't fire Application_Sta rt() event

On my ASP.NET application, restarting the application
through IIS doesn't always fire the Application_Sta rt()
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 7801
Hello,

Application_Sta rt 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_St art 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_Sta rt 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
4108
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 seconds and then restart the entire application. What is the best way to do that? Thanks.
3
1917
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 thread, I think). During each request, only one of these objects is exposed to the page as Page.Application. This seems to be supported by the fact that when I use the debugger, I can see the Application_Start event firing more than one time even...
6
2630
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 shut it down. Including how to establish the running environment( current working folder, ...etc) for each ASP .NET application. Because in my ASP .NET application, there are a lot of modules. Some were developed by using VC#, others using...
5
3506
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? -- Thanks Eric
3
2775
by: ad | last post by:
I want to renew all values of Application and Session. How can I restart application in program?
1
1427
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. Two questions: 1. What are other ways (other than rebooting the Web server) to get the app to restart? 2. Why is it the case that stopping and starting the Web site in IIS Manager doesn't restart the ASP.NET Web application (i.e., noes not have...
3
316
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 other applications on the machine.
4
2169
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 the application to recover without intervention if the problem is a database server is temporarily offline or other external source of data being loaded in the Application_Start event having a problem. I usually set up a SQL Dependency in the...
1
3438
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. - Setting worker process count 1. Start | Programs | Administrative Tools | Internet Information Services 2. Right-click on the application pool, e.g. ‘DefaultAppPool’, and select ‘Properties’
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8825
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4302
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1611
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.