web.config location httpruntime timeout value does not work

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.
 
A

Alexey Smirnov

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top