executionTimeout on a per request basis

Discussion in 'ASP .Net' started by muriwai, May 23, 2007.

  1. muriwai

    muriwai Guest

    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

    --
    muriwai, May 23, 2007
    #1
    1. Advertising

  2. 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.
    Walter Wang [MSFT], May 23, 2007
    #2
    1. Advertising

  3. muriwai

    muriwai Guest

    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.
    >
    muriwai, May 23, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?VGVycnk=?=

    Changing styles sheets on a per user basis

    =?Utf-8?B?VGVycnk=?=, Feb 4, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    360
    =?Utf-8?B?VGVycnk=?=
    Feb 4, 2004
  2. Replies:
    0
    Views:
    445
  3. Noozer
    Replies:
    12
    Views:
    3,530
    dorayme
    Jan 19, 2005
  4. Replies:
    14
    Views:
    517
    bijeshn
    Apr 8, 2008
  5. Yaroslav Klyukin

    Java CPU utilization on a per-thread basis

    Yaroslav Klyukin, Dec 22, 2008, in forum: Java
    Replies:
    1
    Views:
    1,526
    Mark Space
    Dec 22, 2008
Loading...

Share This Page