web.config location httpruntime timeout value does not work

Discussion in 'ASP .Net' started by Scott Roberts, Jan 6, 2010.

  1. Trying to get a page level timeout value working in asp.net 2.0 using the
    web.config location element.

    The configuration node is formatted as follows (under <configuration>
    element in web.config):

    <location path="~/IISResetAppPool.aspx" >
    <system.web>
    <httpRuntime executionTimeout="420"/> <!-- 7 Mins -->
    </system.web>
    </location>

    As per the documentation:
    http://msdn.microsoft.com/en-us/library/b6x6shw7.aspx this should work.

    Any ideas as to why this configuration is ignored by asp.net? The aspx page
    is located at the site root.
     
    Scott Roberts, Jan 6, 2010
    #1
    1. Advertising

  2. On Jan 6, 6:29 pm, Scott Roberts
    <> wrote:
    > Trying to get a page level timeout value working in asp.net 2.0 using the
    > web.config location element.
    >
    > The configuration node is formatted as follows (under <configuration>
    > element in web.config):
    >
    >     <location path="~/IISResetAppPool.aspx" >
    >         <system.web>
    >             <httpRuntime executionTimeout="420"/> <!-- 7 Mins -->
    >         </system.web>
    >     </location>
    >
    > As per the documentation:  http://msdn.microsoft.com/en-us/library/b6x6shw7.aspxthis should work.
    >
    > Any ideas as to why this configuration is ignored by asp.net?  The aspx page
    > is located at the site root.


    I'm not sure but try to set location as <location
    path="IISResetAppPool.aspx" >

    Also note, that this time-out applies only if the debug attribute in
    the compilation element is False.
     
    Alexey Smirnov, Jan 6, 2010
    #2
    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. Do
    Replies:
    2
    Views:
    6,453
  2. =?Utf-8?B?QW5keSBTdGVwaGVucw==?=

    When does the httpRuntime maxRequestLength setting kick in?

    =?Utf-8?B?QW5keSBTdGVwaGVucw==?=, May 8, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    815
    bruce barker \(sqlwork.com\)
    May 8, 2006
  3. Replies:
    1
    Views:
    409
  4. Scott Roberts

    page level httpruntime timeout

    Scott Roberts, Dec 28, 2009, in forum: ASP .Net
    Replies:
    0
    Views:
    463
    Scott Roberts
    Dec 28, 2009
  5. David Elliott
    Replies:
    0
    Views:
    524
    David Elliott
    Jan 27, 2005
Loading...

Share This Page