Time out of page response

  • Thread starter Thread starter Samuel
  • Start date Start date
S

Samuel

Hi

I use ASP.NET 2.0 / IIS 6 and I would like to know whether there is any way
to allow longer time for the page to finish the download as when the server
is busy the users do not to seem receive the entire content of the page.

Thank you,
Samuel
 
Hi

I use ASP.NET 2.0 / IIS 6 and I would like to know whether there is any way
to allow longer time for the page to finish the download as when the server
is busy the users do not to seem receive the entire content of the page.

Thank you,
Samuel

I just finished hacking my way through this issue.

AFAIK, there are four places to adjust timeout values for ASP/SQL
webapps.

There’s the Connect Timeout property in the connection string:
OleDbConnection oCxCognos = new OleDbConnection(
"Data Source=ISGMCOGNOS;" +
"Initial Catalog=Analyzer_llp;Provider=SQLOLEDB.1;" +
"User ID=webuser;Password=xxxxxxx;Connect
Timeout=360");
This sets the timeout waiting for SQL connection.

There’s the timeout on the actual command object in the page’s code-
behind.
daAnalyzer.SelectCommand.CommandTimeout = 360;
This sets the timeout waiting for SQL to send results.

There’s the application timeout in web.config.
<system.web>
<httpRuntime executionTimeout="360"/>

And finally, if you’re using any AJAX stuff, there’s the
AsyncPostBackTimeout property on the ScriptManager (e.g. for the
UpdateProgress control). Ironically, the progress bar control will
timeout and end page execution after 90 seconds by default.
 
Hi

I use ASP.NET 2.0 / IIS 6 and I would like to know whether there is
any way to allow longer time for the page to finish the download as
when the server is busy the users do not to seem receive the entire
content of the page.

Thank you,
Samuel

I would examine the page and find out what the problem is, as this is a
very abnormal condition. Are you trying to output a huge amount of data
on a single page?

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Back
Top