Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > executionTimeout on a per request basis

Reply
Thread Tools

executionTimeout on a per request basis

 
 
muriwai
Guest
Posts: n/a
 
      05-23-2007
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

--



 
Reply With Quote
 
 
 
 
Walter Wang [MSFT]
Guest
Posts: n/a
 
      05-23-2007
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 (, 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.

 
Reply With Quote
 
 
 
 
muriwai
Guest
Posts: n/a
 
      05-23-2007
Thanks Walter.

--

"Walter Wang [MSFT]" <> wrote in message
news:s$...
> 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 (, 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.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
splitting an XML file on the basis on basis of XML tags bijeshn@gmail.com Python 14 04-08-2008 04:26 AM
Dynamically using .resx resources on a per-theme basis markarichman@gmail.com ASP .Net 0 03-02-2006 01:04 AM
DHCP on a per-vlan basis? brut Cisco 3 01-09-2006 04:42 AM
CSS applied on a per character basis? Noozer HTML 12 01-19-2005 12:38 AM
Changing styles sheets on a per user basis =?Utf-8?B?VGVycnk=?= ASP .Net 2 02-04-2004 03:41 AM



Advertisments