Solved

I need to call Application_End()

Posted on 2011-03-04
6
462 Views
Last Modified: 2012-05-11
I need to clean up at the end of a session by deleting a record. What else must I do since I presume I am overriding the default behavior?

Thanks,
newbieweb
0
Comment
Question by:newbieweb
  • 5
6 Comments
 
LVL 10

Accepted Solution

by:
John Claes earned 500 total points
ID: 35037318
msdn states :
http://msdn.microsoft.com/en-us/library/ms178473.aspx


==> Called once per lifetime of the application before the application is unloaded.
So this moment the application is unloading as we speak ;-)

It might be handy to use the dispose also to make sure all unmanged resources are released.

regards
poor beggar

0
 

Author Comment

by:newbieweb
ID: 35037434
Does Application_End() not get called when running inside Visual Studio? It's called "Once per lifetime", and not when I end the application.

Any idea why not?
0
 

Author Comment

by:newbieweb
ID: 35037494
neither Application_End() not Dispose() is getting called.

0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:newbieweb
ID: 35037511
"nor"
0
 

Author Comment

by:newbieweb
ID: 35037534
Also, when I start in Visual Studio, Application_Start() is also not getting called. I see I need to read that link, but I do need to catch every time the session ends. What's a better function to that Application_End()?
0
 

Author Closing Comment

by:newbieweb
ID: 35037829
Thanks, here's my link to the EE question I placed where I am looking for a different function that's called when the browser closes:

http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_26864364.html
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question