473,321 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

executionTimeout

Can executionTimeout be set at run time?
I need to increase it, to allow file uploads, but would prefer to only do it
when the upload page is requested.

TIA

--

Alphonse Giambrone
Email: a-giam at customdatasolutions dot us

Nov 18 '05 #1
4 3664
Hi Alphonse,

As for the "executionTimeout" setting in the ASP.NET 's cofiguration, this
setting is only configurable before runtime in machine.config or web.config
file. In fact, the <httpRuntime> settings such as "executionTimeout" is not
only for fileupload scenarios , but all the http web requests will reply on
this setting, so this setting must be definite before runtime(any web
request occurs). And any modify(manually modify the confige file) on the
configuration(machine.config or web.config) will cause all the web
application or the certain web application recycle. So we're not able to
set it at runtime in code , also not recommended to modify it manually on
the config file. Do you think so? In addition, below is the reference on
the <httpRuntime> element in MSDN:

#<httpRuntime> Element
http://msdn.microsoft.com/library/en...pruntimesectio
n.asp?frame=true

Hope also helps. Thanks.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #2
Thanks for the response Steven,

What do you mean by "not recommended to modify it manually"?
Since it can't be set at runtime, isn't modifying the web.config before
runtime, setting it manually?

The article you referenced states:
"This section can be declared at the machine, site, application, and
subdirectory levels."
Does this mean that I can leave the executionTimeout at default in the
app's web.config file, put my upload form in a subfolder with its own
web.config and set the executionTimeout for the subfolder to a greater value
to allow for upload time without affecting the rest of the app?
--

Alphonse Giambrone
Email: a-giam at customdatasolutions dot us
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:nX**************@cpmsftngxa06.phx.gbl...
Hi Alphonse,

As for the "executionTimeout" setting in the ASP.NET 's cofiguration, this
setting is only configurable before runtime in machine.config or web.config file. In fact, the <httpRuntime> settings such as "executionTimeout" is not only for fileupload scenarios , but all the http web requests will reply on this setting, so this setting must be definite before runtime(any web
request occurs). And any modify(manually modify the confige file) on the
configuration(machine.config or web.config) will cause all the web
application or the certain web application recycle. So we're not able to
set it at runtime in code , also not recommended to modify it manually on
the config file. Do you think so? In addition, below is the reference on
the <httpRuntime> element in MSDN:

#<httpRuntime> Element
http://msdn.microsoft.com/library/en...pruntimesectio n.asp?frame=true

Hope also helps. Thanks.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #3
Hi Alphonse,

Yes, you can make a subdirectory which has a own web.config and put the
certain page which need particluar setting in the subdirectory. In
addition, the web.config file's schema also provide the <location> element
which can help to specify setting for a certain path (even a certain page).
For example, if you'd like to override the <httpRuntime> setting for just
one page(upload.aspx), you can apply the <location> element in the
web.config file as below:
<configuration>
<location path="upload.aspx">
<httpRuntime maxRequestLength="128"/>
</location>
</configuration>

Looks cool? :)

For detailed description on the <location> element, please refer to the
following reference in MSDN:
#<location> Element
http://msdn.microsoft.com/library/en...ationElement.a
sp?frame=true

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

-------------------------------------------------------------------------

Nov 18 '05 #4
Thanks for the quick reply,

That works!

--

Alphonse Giambrone
Email: a-giam at customdatasolutions dot us
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:go**************@cpmsftngxa06.phx.gbl...
Hi Alphonse,

Yes, you can make a subdirectory which has a own web.config and put the
certain page which need particluar setting in the subdirectory. In
addition, the web.config file's schema also provide the <location> element
which can help to specify setting for a certain path (even a certain page). For example, if you'd like to override the <httpRuntime> setting for just
one page(upload.aspx), you can apply the <location> element in the
web.config file as below:
<configuration>
<location path="upload.aspx">
<httpRuntime maxRequestLength="128"/>
</location>
</configuration>

Looks cool? :)

For detailed description on the <location> element, please refer to the
following reference in MSDN:
#<location> Element
http://msdn.microsoft.com/library/en...ationElement.a sp?frame=true

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

-------------------------------------------------------------------------

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Arsen V. | last post by:
I am trying to make the page execute timeout after 2 seconds. I first tried using the Server.ScriptTimeout = 2 in the Page_Load() event. The next line does System.Threading.Thread.Sleep(10000);...
4
by: Alphonse Giambrone | last post by:
Can executionTimeout be set at run time? I need to increase it, to allow file uploads, but would prefer to only do it when the upload page is requested. TIA -- Alphonse Giambrone Email:...
8
by: Alphonse Giambrone | last post by:
Can executionTimeout be set at run time? I need to increase it, to allow file uploads, but would prefer to only do it when the upload page is requested. TIA -- Alphonse Giambrone Email:...
10
by: Jim Underwood | last post by:
I am having a problem with my web page timng out while retrieving a long runnign report (90-120 seconds. I have tried modifying several settings in various places and cannot get it to run for more...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.