Last post Mar 13, 2009 05:28 AM by omalbose
Mar 12, 2009 01:28 PM|GM-by|LINK
I have very strange problem.
I've migrate sites from one server to another. After migration I've fased with next problem:
If I click button or select drop down list After 1 hour pause with opened site I receive "page no found exception". Fiddler show post request to server with 0 bites response. IIS write to log internal server error (500). But after that I click refresh and
site work normaly.
Also same site work normaly on old server.
Mar 13, 2009 05:28 AM|omalbose|LINK
The following reasons can cause problem you mentioned above
1. Sesssion Timeout
2. IIS service time out
So please try to set greater time period for those values.
The timeout for a page request depends whether you are running debug or release code. The setting is in the web.config. In debug mode the timeout is 30000000 seconds which is about a year. In release mode the timeout is only 90 seconds. In some cases that
may not be enough. You cannot set the timeout as a property of the page itself; it is a property of the global
Server object. Set it in the page init event and reset it in the page unload event.
Please try this code
private int timeOut;
void Timouttest_Init(object sender, System.EventArgs e)
timeOut = Server.ScriptTimeout;
// Give it 1 hour = 3600 seconds
Server.ScriptTimeout = 3600;
void Timouttest_Unload(object sender, System.EventArgs e)
Server.ScriptTimeout = timeOut;
or you can refer this link for further details about web.config file