473,396 Members | 1,843 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,396 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 3666
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.