-
Mar 19th, 2018, 06:53 AM
#1
Thread Starter
Fanatic Member
[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...
-
Mar 19th, 2018, 11:35 AM
#2
Thread Starter
Fanatic Member
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>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|