[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 473
  • Last Modified:

I need to call Application_End()

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
newbieweb
Asked:
newbieweb
  • 5
1 Solution
 
John ClaesCommented:
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
 
newbiewebAuthor Commented:
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
 
newbiewebAuthor Commented:
neither Application_End() not Dispose() is getting called.

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
newbiewebAuthor Commented:
"nor"
0
 
newbiewebAuthor Commented:
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
 
newbiewebAuthor Commented:
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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now