Re: How long can my asp.net application run for?
- From: "Chase" <Chase@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 13 Jul 2005 05:30:01 -0700
Good Morning Juan, Thanks for the suggestions!
I added code as you suggested below to my project. When I navigated to my
page with the application on it I received the following error:
"Session state can only be used when enableSessionState is set to true,
either in a configuration file or in the Page directive "
Which leads me to believe... that the session state is not what is holding
me up at 20 minutes.
I also checked the application pool recycle settings as you suggested. The
only setting that is checked is 'Recycle worker processes at the following
times: 01:48'
Any other suggestions are greatly appreciated!
Thanks for your time!
- Chase
"Juan T. Llibre" wrote:
> Hi, Chase.
>
> Your application could be recycling at 25 minutes due to other settings.
>
> Check your Application Pool's recyclying settings.
> ( IIS Manager, scroll on the left to Application Pools,
> and right click --> select "Properties". )
>
> Look for any short time periods in the recycling tab.
>
> Try this to check whether the Session_OnStart
> and Application_OnStart events are firing:
>
> In global.asax, in Application_OnStart ( you can also use Application_Start )
>
> Application("APP_START_TIME") = DateTime.Now
>
> And, in global.asax, in Session_OnStart ( you can also use Session_Start )
>
> Session.Contents("AppStartTime") = Now
>
> Then, in your test page, use :
>
> Sub Page_Load(Sender As System.Object, E As System.EventArgs)
> Label1.Text = "The application's start time was : " & Application("APP_START_TIME")
> Label2.Text = "The session's start time was : " & Session("AppStartTime")
> End Sub
>
> And, in the body of your test page :
>
> <form id="form1" runat="server">
> <div>
> <asp:Label ID="Label1" Runat="server"></asp:Label><br />
> <asp:Label ID="Label2" Runat="server"></asp:Label><br />
> </div>
> </form>
>
> Let us know whether both events are reported.
>
>
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Español
> Ven, y hablemos de ASP.NET...
> ======================
>
> "Chase" <Chase@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:50ED2DF1-71FD-4520-8389-959E625FBDB8@xxxxxxxxxxxxxxxx
> > Thanks for the suggestion!
> >
> > In my web.config for my Visual Studio project I modified the timout
> > attribute as follows:
> > <sessionState
> > mode="InProc"
> > stateConnectionString="tcpip=127.0.0.1:42424"
> > sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
> > cookieless="false"
> > timeout="240"
> > />
> >
> > Also, in IIS Manager I right clicked on the folder in which my application
> > lives, went to properties, on the Directory tab I clicked on the
> > Configuration button, went to the options tab and changed the Session timeout
> > from the default 20 to 240.
> >
> > Rebuilt my application, restarted IIS and ran my application again. I still
> > didn't make it past the ~25 min mark, and got the same page cannot be
> > displayed error.
> >
> > In an attempt to troubleshoot what might be causing the problem I added code
> > in my global.asax.cs to write a text file with the system time in it for the
> > following events:
> > Application_Start
> > Session_Start
> > Session_End
> > Application_End
> >
> > After running the application, only one file was written: Application_Start
> > (which leads me to believe the session_start/end and application_end events
> > never occured).
> >
> > Any other ideas?
> >
> > Thanks all for your time!
> >
> > - Chase
>
>
> > "Clamps" wrote:
> >
> >> Have a look at session.timeout
>
>
> >> "Chase" <Chase@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> >> news:3044B711-D67D-4986-8DA7-CBECC330D9B3@xxxxxxxxxxxxxxxx
> >> > I'm pretty new to asp.net and am having problems with my application
> >> timing
> >> > out.
> >> >
> >> > I've written an application that loops through all of the information on
> >> an
> >> > excel spread*** and does certain things with it, like creating and
> >> > configuring WSS sites.
> >> >
> >> > My application runs fine for approximately 25 minutes, then I get the
> >> 'Page
> >> > cannot be displayed' error. It seems like my browser times out before the
> >> > application can finish what its doing.
> >> >
> >> > What settings should I be checking? Are there asp.net settings I need to
> >> > configure, or is my browser the culprit (does it think the page is never
> >> > going to load and just time out)?
> >> >
> >> > Thanks for any help!
> >> >
> >> > - Chase
>
>
>
>
.
- Follow-Ups:
- Re: How long can my asp.net application run for?
- From: Guomao Xin
- Re: How long can my asp.net application run for?
- References:
- How long can my asp.net application run for?
- From: Chase
- Re: How long can my asp.net application run for?
- From: Clamps
- Re: How long can my asp.net application run for?
- From: Chase
- Re: How long can my asp.net application run for?
- From: Juan T. Llibre
- How long can my asp.net application run for?
- Prev by Date: client side processing of an image,
- Next by Date: Re: There has to be a better way to develop web applications.
- Previous by thread: Re: How long can my asp.net application run for?
- Next by thread: Re: How long can my asp.net application run for?
- Index(es):