web.config location httpruntime timeout value does not work

  • Thread starter Thread starter Scott Roberts
  • Start date Start date
S

Scott Roberts

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.
 
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 aspxpage
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.
 
Back
Top