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

Guest

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.
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top