473,413 Members | 1,700 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,413 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 5743
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.