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" <Ch***@discussions.microsoft.com> wrote in message
news:50**********************************@microsof t.com...
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" <Ch***@discussions.microsoft.com> wrote in message
news:30**********************************@microsof t.com... > 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 spreadsheet 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