473,326 Members | 2,133 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,326 software developers and data experts.

What causes Application_End?

In one of my web developments, the Application_End event occurs several
times while a user browses the pages. Because I make use of extensive
session tracking and also provide a couple of services that need the session
state, that is highly problematic as the sessions are abandoned when the
application ends. I have observed this behaviour for quite a while now,
locally as well as on the web, so it must be due to some of my code.

Is there any documentation around what exactly causes the ASPX application
to be restarted, other than a server re-start? Has anyone experienced
similar problems, or otherwise any kind of clue that might help? I've had a
hint from someone, saying that "rather critical errors" could provoke such
behaviour. However, detailed information (as to what kind of error) would be
good as I have no idea what in my code that could be, nor when it started to
behave like it.

Additional info:

Read-Write-Access MDB database
Read-Write Access in a couple of directories
Temporary image files are generated on each request

Although this seems to be a code-related error, I can report that the
Application_Error event does not occur.

I'm looking forward to hearing your ideas.
Best,
Philipp Schumann
Nov 18 '05 #1
1 2953
Sometimes a virus scanner will cause this as the application will be
restarted if it thinks that the web.config file has changed. You may also
want to make sure that the sessions aren't abandoning first because if all
the sessions are abandoned and no sessions are active any longer then the
application will call the End event to clean up until the next session is
launched. You might try dumping some info to the trace log from the
global.asax (using the HttpContext.Current.Trace object) as that might let
you see some timing of events going on that may appear odd, like the
Sessions ending prematurely, such as at the end of a page.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Philipp Schumann" <ph**@mokka.org> wrote in message
news:uL**************@TK2MSFTNGP11.phx.gbl...
In one of my web developments, the Application_End event occurs several
times while a user browses the pages. Because I make use of extensive
session tracking and also provide a couple of services that need the session state, that is highly problematic as the sessions are abandoned when the
application ends. I have observed this behaviour for quite a while now,
locally as well as on the web, so it must be due to some of my code.

Is there any documentation around what exactly causes the ASPX application
to be restarted, other than a server re-start? Has anyone experienced
similar problems, or otherwise any kind of clue that might help? I've had a hint from someone, saying that "rather critical errors" could provoke such
behaviour. However, detailed information (as to what kind of error) would be good as I have no idea what in my code that could be, nor when it started to behave like it.

Additional info:

Read-Write-Access MDB database
Read-Write Access in a couple of directories
Temporary image files are generated on each request

Although this seems to be a code-related error, I can report that the
Application_Error event does not occur.

I'm looking forward to hearing your ideas.
Best,
Philipp Schumann

Nov 18 '05 #2

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

Similar topics

1
by: Pedro Duque | last post by:
I've created a .net web service in c#. When there is no open session i need to free some resources. So, I've place the code on the Global.Application_End member. Unffortunatly it seems that the...
0
by: sushi | last post by:
Hello, When is Application_End event called? Actually, I am developing a web application which will start some operation that will continue to run even when the session of all the user's end...
2
by: Craig | last post by:
Hi, I'm having difficulty understanding how the Application_End event in the Global.asax file gets called. I thought that it's called when the specific web site is stopped via the IIS management...
4
by: Halcyon Woodward | last post by:
I have an odd problem... We have a small development team (three coders) working on the same project (a C# web application). Each coder has a unique 'sandbox' site on a shared Windows 2003...
8
by: Alphonse Giambrone | last post by:
I have a small asp.net web app running on a shared host. It uses a Jet (Access) database. I included a routine to compact the database when the application_event fires if it has not been compacted...
4
by: Vlad Hrybok | last post by:
I am using Application_End to send out a notification about application being unloaded. I found that those notifications are not being sent because the app seems to get unloaded without...
4
by: J-T | last post by:
I have my applciation installed in an appplication pool (a worker process) -IIS 6.0-which is defined to be shut down after 20 minutes of being idle.If I put a breakpoint in Application_End method...
1
by: Navin Mishra | last post by:
Hi, If IIS Application Pool for a web service is called, shouldn't Application_End be called ? Some how I'm not seeing that. I've cached some client connection in Application object and I want...
5
by: Tenacious | last post by:
I am trying to shutdown a database server in the Application_End event handler on the Global.asax page. So far I am trying this only on the development server that comes with Visual Studio 2005....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.