473,466 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Question concerning Application_Start event

I have a wierd situation occurring. I have some code in my
Application_Start method in the Global.asax. That code logs some startup
info. My understading was that this event would only fire when the App
started, due to server reboot, web.config change, or manual start/restart of
either the app or IIS. The problem is that I see daily log entries from the
Application_Start code. It also appears that the jit compiles cache is
being cleared at that restart, because the initial execution after that
restart is pretty slow. Does anyone have any idea why these "restarts" are
occurring ?

--
-----
Joel Zinn
Nov 19 '05 #1
2 1198
Hi Joel,

Your understanding is understandable, but is lacking one condition:

The Application will restart after a period of time with no client requests.

Yup, the Application has a timeout as well.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Joel Zinn" <jw****@aep.com> wrote in message
news:OE***************@TK2MSFTNGP09.phx.gbl...
I have a wierd situation occurring. I have some code in my
Application_Start method in the Global.asax. That code logs some startup
info. My understading was that this event would only fire when the App
started, due to server reboot, web.config change, or manual start/restart
of either the app or IIS. The problem is that I see daily log entries from
the Application_Start code. It also appears that the jit compiles cache is
being cleared at that restart, because the initial execution after that
restart is pretty slow. Does anyone have any idea why these "restarts" are
occurring ?

--
-----
Joel Zinn

Nov 19 '05 #2
Is this 2003 Server? You might have process recycling set to restart
the app every morning, or after a period of inactivity. Look at the
"Recycling" tab in the property dialog for the application pool your
webapp lives in.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 29 Mar 2005 08:36:48 -0600, "Joel Zinn" <jw****@aep.com>
wrote:
I have a wierd situation occurring. I have some code in my
Application_Start method in the Global.asax. That code logs some startup
info. My understading was that this event would only fire when the App
started, due to server reboot, web.config change, or manual start/restart of
either the app or IIS. The problem is that I see daily log entries from the
Application_Start code. It also appears that the jit compiles cache is
being cleared at that restart, because the initial execution after that
restart is pretty slow. Does anyone have any idea why these "restarts" are
occurring ?


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Max | last post by:
I've noticed some procedures don't run in the global.asax when you'd expect them to. I've rebuilt and set break points, but Application_Start just isn't firing today. Is there some configuration...
6
by: Ober | last post by:
I'm having trouble with my security model, Application_Start, and accessing my database. My ASP.NET app is only going to be running in an intranet environment (not on the public Internet). ...
0
by: Stanley Alex | last post by:
I need to syc data from a local database with an external database on another website once a day. I decided to try a timer contol and create an instance in my global.asax. I call the function below...
3
by: msnews.microsoft.com | last post by:
Hi What can you do with the errors occuring in global.asax in Application_Start (or Init) ? What is the best practice here ? What's the elegant solution in this case ? For now (I'm learning)...
6
by: Leslie | last post by:
I am attempting to handle errors by using Application_Error. This seems to work fine in most situations. However, if the exception occurs during the Application_Start method, the stand error...
8
by: bryan | last post by:
Is there any way I can get the application path (the one returned by Request.ApplicationPath) in the Application_Start method in Global.asax? Request is not valid there. On a related note, is there...
12
by: Thomas H. Lanier | last post by:
In ASP.NET is there a way to run some code when IIS first loads? The Application_Start event is called when the first resource (such as a page) in an ASP.NET application is requested. I need...
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...
3
by: GaryDean | last post by:
I'm using TransactionScope as follows... using TransactionScope myScope = new TransactionScope()) { using (SqlConnection conn = new SqlConnection()) { conn.ConnectionString =...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.