By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,780 Members | 1,550 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,780 IT Pros & Developers. It's quick & easy.

Application_OnEnd event not working

P: n/a
I'm trying to understand how application_onend event in
the global.asax works. I've hear a lot of explanations
that this event fires when the HttpApplication shuts down
after the last user's session has expired, how this event
only runs when the IIS server has stopped, or that it's
the CLR's garbage collector that triggers this event. I
tried to write a code to test if these theories work by
having the application_onend write a text file and writing
the time when this event fired. I haven't seen any
results. Can anyone explain how this event fires? Better
yet, can anyone suggest a test senario I could setup to
test this event?

Thanks for the help!
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Put a break point in the application_end and then stop IIS service or
restart it. The break point should fire. You cannot get the application
event to fire by closing the browser because that is associated with session
not application

regards

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Edward" <an*******@discussions.microsoft.com> wrote in message
news:10****************************@phx.gbl...
I'm trying to understand how application_onend event in
the global.asax works. I've hear a lot of explanations
that this event fires when the HttpApplication shuts down
after the last user's session has expired, how this event
only runs when the IIS server has stopped, or that it's
the CLR's garbage collector that triggers this event. I
tried to write a code to test if these theories work by
having the application_onend write a text file and writing
the time when this event fired. I haven't seen any
results. Can anyone explain how this event fires? Better
yet, can anyone suggest a test senario I could setup to
test this event?

Thanks for the help!

Nov 17 '05 #2

P: n/a
It worked! Thanks...
-----Original Message-----
Put a break point in the application_end and then stop IIS service orrestart it. The break point should fire. You cannot get the applicationevent to fire by closing the browser because that is associated with sessionnot application

regards

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Edward" <an*******@discussions.microsoft.com> wrote in messagenews:10****************************@phx.gbl...
I'm trying to understand how application_onend event in
the global.asax works. I've hear a lot of explanations
that this event fires when the HttpApplication shuts down after the last user's session has expired, how this event only runs when the IIS server has stopped, or that it's
the CLR's garbage collector that triggers this event. I
tried to write a code to test if these theories work by
having the application_onend write a text file and writing the time when this event fired. I haven't seen any
results. Can anyone explain how this event fires? Better
yet, can anyone suggest a test senario I could setup to
test this event?

Thanks for the help!

.

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.