Results 1 to 2 of 2

Thread: [RESOLVED] Specifying timeout for single page in a website

  1. #1

    Thread Starter
    Fanatic Member InvisibleDuncan's Avatar
    Join Date
    May 2001
    Location
    Eating jam.
    Posts
    819

    Resolved [RESOLVED] Specifying timeout for single page in a website

    One of our internal websites runs a particularly lengthy process (basically uploading and processing huge amounts of data from a spreadsheet). Because of the increasing size of the spreadsheets, this has now started to timeout before the process ends.

    I don't particularly want to increase the timeout for the whole website, so I had tried to set it just for the single page in question using the web.config. Just extracting the relevant bits, that gave me this:

    Code:
        <!-- Increase the timeout for the single page -->
        <location path="~/UTIL/MultiWFInit.aspx">
            <system.web>
                <httpRuntime executionTimeout="600"/>
            </system.web>
        </location>
    
        <!-- Default settings -->
        <system.web>
            <httpRuntime executionTimeout="300" maxRequestLength="51200" requestValidationMode="2.0" minFreeThreads="88" minLocalRequestFreeThreads="88" />
        </system.web>
    However, I'm finding that my page still times out after 5 minutes (which is the setting for the whole site) rather than the 10 minutes I've specified for it.

    In case the order matters, I've tried putting the block for the single page before the default setting and after the default setting, but it gets ignored in both places.

    Any idea what I'm doing wrong here?

    Thanks...
    Indecisiveness is the key to flexibility.

    www.mangojacks.com

  2. #2

    Thread Starter
    Fanatic Member InvisibleDuncan's Avatar
    Join Date
    May 2001
    Location
    Eating jam.
    Posts
    819

    Re: Specifying timeout for single page in a website

    If anyone is interested, I sorted it out. I should have done this (i.e. without the tilde and the /):

    Code:
        <!-- Increase the timeout for the single page -->
        <location path="UTIL/MultiWFInit.aspx">
            <system.web>
                <httpRuntime executionTimeout="600"/>
            </system.web>
        </location>
    
        <!-- Default settings -->
        <system.web>
            <httpRuntime executionTimeout="300" maxRequestLength="51200" requestValidationMode="2.0" minFreeThreads="88" minLocalRequestFreeThreads="88" />
        </system.web>
    Indecisiveness is the key to flexibility.

    www.mangojacks.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width