469,282 Members | 1,892 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

Application_End method of Global.asax and Shutting down an asp.net application

J-T
I have my applciation installed in an appplication pool (a worker
process) -IIS 6.0-which is defined to be shut down after 20 minutes of being
idle.If I put a breakpoint in Application_End method of Global.asax and
there is no request for 20 minutes ,dose the breakpoint works for me?

Is there a document which can gives me more infomration in this behaviour?
Thanks
Nov 19 '05 #1
4 2841
Yes, the breakpoint should be hit. Are you saying the breakpoint is
not being hit?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 27 May 2005 12:16:43 -0700, "J-T" <J-*@microsft.com> wrote:
I have my applciation installed in an appplication pool (a worker
process) -IIS 6.0-which is defined to be shut down after 20 minutes of being
idle.If I put a breakpoint in Application_End method of Global.asax and
there is no request for 20 minutes ,dose the breakpoint works for me?

Is there a document which can gives me more infomration in this behaviour?
Thanks


Nov 19 '05 #2
J-T
Yes Scott,
I can not get the breakpoint to hit!!!I'm putting my application in the
application pool of IIS 6.0 and set the shut down to for instance 5 minutes
,but after five minutes nothing happens!!!!

Thanks Scott
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:i8********************************@4ax.com...
Yes, the breakpoint should be hit. Are you saying the breakpoint is
not being hit?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 27 May 2005 12:16:43 -0700, "J-T" <J-*@microsft.com> wrote:
I have my applciation installed in an appplication pool (a worker
process) -IIS 6.0-which is defined to be shut down after 20 minutes of
being
idle.If I put a breakpoint in Application_End method of Global.asax and
there is no request for 20 minutes ,dose the breakpoint works for me?

Is there a document which can gives me more infomration in this behaviour?
Thanks

Nov 19 '05 #3
http://msdn.microsoft.com/library/de...atesection.asp
<sessionState mode="Off|InProc|StateServer|SQLServer"
cookieless="true|false"
timeout="number of minutes"
stateConnectionString="tcpip=server:port"
sqlConnectionString="sql connection string"
stateNetworkTimeout="number of seconds"/>

timeout - Specifies the number of minutes a session can be idle before it is
abandoned. The default is 20.

http://msdn.microsoft.com/library/de...rowebforms.asp
Application_End - Fires when the last user in the site's session times out
From the documentation Application_End ONLY FIRES when the LAST USER in
the site's session times out, since the default value is 20 mintues once
http://msdn.microsoft.com/library/de...netchapt15.asp
I noticed this piece of code from the above link.

protected void Application_End(Object sender, EventArgs e){
//release the writer
// Even if this doesn't execute, when the appdomain gets shutdown
//it will be released anyways
if(_writer!=null)
_writer.Close();
}

Just by the wording in the comment section it seems that Application_End
might not always get called on an app shutdown.
"J-T" <J-*@microsft.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have my applciation installed in an appplication pool (a worker
process) -IIS 6.0-which is defined to be shut down after 20 minutes of
being
idle.If I put a breakpoint in Application_End method of Global.asax and
there is no request for 20 minutes ,dose the breakpoint works for me?

Is there a document which can gives me more infomration in this behaviour?
Thanks

Nov 19 '05 #4
J-T
I'm confused!!!!

"gabe garza" <gb*****@yahoo.com> wrote in message
news:w1*******************@newssvr14.news.prodigy. com...
http://msdn.microsoft.com/library/de...atesection.asp
<sessionState mode="Off|InProc|StateServer|SQLServer"
cookieless="true|false"
timeout="number of minutes"
stateConnectionString="tcpip=server:port"
sqlConnectionString="sql connection string"
stateNetworkTimeout="number of seconds"/>

timeout - Specifies the number of minutes a session can be idle before it
is abandoned. The default is 20.

http://msdn.microsoft.com/library/de...rowebforms.asp
Application_End - Fires when the last user in the site's session times
out
From the documentation Application_End ONLY FIRES when the LAST USER in
the site's session times out, since the default value is 20 mintues once
http://msdn.microsoft.com/library/de...netchapt15.asp
I noticed this piece of code from the above link.

protected void Application_End(Object sender, EventArgs e){
//release the writer
// Even if this doesn't execute, when the appdomain gets shutdown
//it will be released anyways
if(_writer!=null)
_writer.Close();
}

Just by the wording in the comment section it seems that Application_End
might not always get called on an app shutdown.
"J-T" <J-*@microsft.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have my applciation installed in an appplication pool (a worker
process) -IIS 6.0-which is defined to be shut down after 20 minutes of
being
idle.If I put a breakpoint in Application_End method of Global.asax and
there is no request for 20 minutes ,dose the breakpoint works for me?

Is there a document which can gives me more infomration in this
behaviour?
Thanks


Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Pedro Duque | last post: by
2 posts views Thread by Craig | last post: by
3 posts views Thread by Jim Owen | last post: by
4 posts views Thread by Vlad Hrybok | last post: by
10 posts views Thread by newbie | last post: by
2 posts views Thread by Ido | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.