Application_OnEnd event not working

  • Thread starter Thread starter Edward
  • Start date Start date
E

Edward

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!
 
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
 
It worked! Thanks...
-----Original Message-----
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



.
 
Back
Top