• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 484
  • 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 ClaesSenior .Net Consultant & Technical AnalistCommented:
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
 
newbiewebSr. Software EngineerAuthor 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
 
newbiewebSr. Software EngineerAuthor Commented:
neither Application_End() not Dispose() is getting called.

0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
newbiewebSr. Software EngineerAuthor Commented:
"nor"
0
 
newbiewebSr. Software EngineerAuthor 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
 
newbiewebSr. Software EngineerAuthor 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

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