executionTimeout on a per request basis

  • Thread starter Thread starter muriwai
  • Start date Start date
M

muriwai

Hi,

I have a page that handles file downloads, and sometimes it fails with
"Request timed out", apparently because it takes more than the default 90
seconds to stream out the file. I don't want setting executionTimeout in the
config file. Is there a way to set the execution timeout for individual
requests?

Thanks

--
 
Hi,

You can use Server.ScriptTimeout to change the request's executing timeout
value:

protected void button1_Click(object sender, EventArgs e)
{
Page.Server.ScriptTimeout = 120; // seconds
Thread.Sleep(100 * 1000);
}


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top