473,396 Members | 1,774 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.

ThreadAbortException & executionTimeout

Hi

We have a case where client clicks a button and series of events take place
which some of them are web service calls. And sometimes, we are receiving
ThreadAbortException on the final steps which results in unacceptable case.

So far, I find out that I can modify executionTimeout to make the execution
longer. However I do not wish to do that through out the application but for
a certain page or method or block.
First of all, is this possible?
If not, what are the recommendations?

I also reached the following note:
Note: Timeout values are specified in milliseconds. If you have debug="false"
in the Web.config file, the executionTimeout value will be ignored.

Why is this? In production eviorment, definetelly I would do debug="false".
So what will this do?

Thanks to anyone who readys and responds.

--

SevDer
http://www.sevder.com
A new source for .NET Developers

Mar 13 '06 #1
2 5741
there are lots of timeout values.

1) script time out (how long the page will run)
2) database connection timeouts
3) database query timeout
4) webservice call timeout
5) proxy servier timeout
6) browser requiest timeout

you can control the script (asp.net page process) timeout on a per page
basis, see HttpServerUtility.ScriptTimeout.
-- bruce (sqlwork.com)


"SevDer" <se****@newsgroup.nospam> wrote in message
news:u6**************@TK2MSFTNGP12.phx.gbl...
Hi

We have a case where client clicks a button and series of events take
place which some of them are web service calls. And sometimes, we are
receiving ThreadAbortException on the final steps which results in
unacceptable case.

So far, I find out that I can modify executionTimeout to make the
execution longer. However I do not wish to do that through out the
application but for a certain page or method or block.
First of all, is this possible?
If not, what are the recommendations?

I also reached the following note:
Note: Timeout values are specified in milliseconds. If you have
debug="false" in the Web.config file, the executionTimeout value will be
ignored.

Why is this? In production eviorment, definetelly I would do
debug="false". So what will this do?

Thanks to anyone who readys and responds.

--

SevDer
http://www.sevder.com
A new source for .NET Developers

Mar 13 '06 #2
Hi SevDer,

For your scenario, if the problem does be caused by the request's
executionTimeout, we can just enlarge the "executionTimeout" setting of the
httpRuntime element. And for ASP.NET web.config, we can use the <location>
element to configure such setting for individual page or sub directory.

#How to: Configure Specific Directories Using Location Settings
http://msdn2.microsoft.com/en-us/library/ms178692.aspx
e.g:

<configuration>
<location path="UploadPage.aspx">
<httpRuntime maxRequestLength="128"/>
</location>
</configuration>

BTW, to make the httpRuntime setting work as expected, make sure your web
application is condfigured as "release" mode(compilation/@debug attribute
set to false). In debug mode, such setting like the executionTimeout may
work differently.

Hope this helps.

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

Mar 14 '06 #3

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:...
0
by: Virag Gutgutia | last post by:
Hi, I am trying to understand the behaviour of executionTimeout attribute in the httpRuntime element. From what I understood in the documentation that by setting the executionTimeout i can limit...
4
by: splap20 | last post by:
Every day a large chunk of XML is posted up to my app via http. The app interprets this XML and writes results to a SQLServer. Occasionally a ThreadAbortException is thrown during this process....
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...
6
by: foolmelon | last post by:
If a childThread is in the middle of a catch block and handling an exception caught, the main thread calls childThread.Abort(). At that time a ThreadAbortException is thrown in the childThread. ...
3
by: =?Utf-8?B?RXRoYW4gU3RyYXVzcw==?= | last post by:
Hi, I am running a web service which sometimes throws exceptions. I have a lot of error trapping within the web service, but I have missed the current problem. I am working on the current issue,...
1
by: dejavue82 | last post by:
Hi, What is the maximum value I can set to the following web.config property to? <httpRuntime executionTimeout=""> I'm asking, since I'm not sure if there is a setting on my host's shared...
0
by: Zeba | last post by:
Hi ! I am using a httphandler to perform some url rewriting in my application. My web.config contains the following entry to direct all urls containing /App/*.ashx to my class AppHandler.cs in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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.