473,387 Members | 1,876 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,387 software developers and data experts.

What causes 'Thread was being aborted' error

I have been googling and cannot seem to find the answer I seek so I
turn to the group.
I have an application where I have been receiving 'Thread was being
aborted' error ocasionally. In production I have received it at least 3
times in 45 days. It is sporadic.

After some searching, I can rule out the most likely suspects. It is
NOT happening because of a Reponse.Redirect, which seems to be the most
common in the posts I have seen. I thought it might have to do with the
system resources and recycling, but I have not seen anything in the
event viewer referring to that.

Does anyone have any sugestions on how to start diagnosing this issue.
Are there other reasons that could be causing this. Can anyone direct
me to a better source of reasons that could cause this error. Thanks

Nov 19 '05 #1
6 8928
Perhaps this is as a result of a Session timeout at the same time as a
postback ?
"HLady" <Ha******@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I have been googling and cannot seem to find the answer I seek so I
turn to the group.
I have an application where I have been receiving 'Thread was being
aborted' error ocasionally. In production I have received it at least 3
times in 45 days. It is sporadic.

After some searching, I can rule out the most likely suspects. It is
NOT happening because of a Reponse.Redirect, which seems to be the most
common in the posts I have seen. I thought it might have to do with the
system resources and recycling, but I have not seen anything in the
event viewer referring to that.

Does anyone have any sugestions on how to start diagnosing this issue.
Are there other reasons that could be causing this. Can anyone direct
me to a better source of reasons that could cause this error. Thanks

Nov 19 '05 #2
As an update on above, I just realized the server is running on IIS5.

Nov 19 '05 #3
HLady wrote:
I have been googling and cannot seem to find the answer I seek so I
turn to the group.
I have an application where I have been receiving 'Thread was being
aborted' error ocasionally. In production I have received it at least
3 times in 45 days. It is sporadic.

After some searching, I can rule out the most likely suspects. It is
NOT happening because of a Reponse.Redirect, which seems to be the
most common in the posts I have seen. I thought it might have to do
with the system resources and recycling, but I have not seen anything
in the event viewer referring to that.

Does anyone have any sugestions on how to start diagnosing this issue.
Are there other reasons that could be causing this. Can anyone direct
me to a better source of reasons that could cause this error. Thanks


You can attach a debugger like CDB to the process and configure it to dump
the process when the ThreadAbortException occurs. You can then use the dump
to analyze the stack. Come to think of it, you could just have CDB dump the
stack when this happens.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003


Nov 19 '05 #4
HLady,

Most of the time this is caused by a Response.Redirect being used inside of
a Try Catch.

To stop this from happening there is an additional parameter that may be
passed into the try catch, "EndResponse". EndResponse is set to true by
default, but ending the response while in a try catch causes the error
you're seeing. Setting EndResponse to false will solve the problem. Use it
like this:

Response.Redirect("MyNewPage.aspx", False)

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"HLady" <Ha******@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I have been googling and cannot seem to find the answer I seek so I
turn to the group.
I have an application where I have been receiving 'Thread was being
aborted' error ocasionally. In production I have received it at least 3
times in 45 days. It is sporadic.

After some searching, I can rule out the most likely suspects. It is
NOT happening because of a Reponse.Redirect, which seems to be the most
common in the posts I have seen. I thought it might have to do with the
system resources and recycling, but I have not seen anything in the
event viewer referring to that.

Does anyone have any sugestions on how to start diagnosing this issue.
Are there other reasons that could be causing this. Can anyone direct
me to a better source of reasons that could cause this error. Thanks

Nov 19 '05 #5
I had read it was caused by a response.redirect most of the time, but
unfortunately that is not the case here. Thanks for your suggestion.

Nov 19 '05 #6
Response.End() aborts the current thread (it called by Reponse.Redirect).
this should be the only "normal" condition. asp.net monitoring will also
kill a thread if it runs too long, (past timeout). this is the most likely
in your low volume case.

-- bruce (sqlwork.com)
"HLady" <Ha******@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I have been googling and cannot seem to find the answer I seek so I
turn to the group.
I have an application where I have been receiving 'Thread was being
aborted' error ocasionally. In production I have received it at least 3
times in 45 days. It is sporadic.

After some searching, I can rule out the most likely suspects. It is
NOT happening because of a Reponse.Redirect, which seems to be the most
common in the posts I have seen. I thought it might have to do with the
system resources and recycling, but I have not seen anything in the
event viewer referring to that.

Does anyone have any sugestions on how to start diagnosing this issue.
Are there other reasons that could be causing this. Can anyone direct
me to a better source of reasons that could cause this error. Thanks

Nov 19 '05 #7

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

Similar topics

1
by: Elliot M. Rodriguez | last post by:
A few of our customers cannot access one of the pages on our vb.net asp.net site. The problems are limited to only a few people, but these people have the problem regularly. The page in question...
1
by: GSK | last post by:
I am logging the following error when re-directing via Response.Redirect: "Thread was being aborted at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object...
0
by: Johanna | last post by:
Hello, Thread was being aborted exception is thrown by my asp.net application. I hope someone could help me with this error that I get in windows 2003 server. This error has not occured with...
3
by: Johanna | last post by:
Hello, Thread was being aborted exception is thrown by IIS for my asp.net application on win2003 server. This error has not yet occured with the same asp.net application on windows 2000...
1
by: Rachit | last post by:
Hi, I've a WebApp that calls Microsoft CRM WebServices to perform a particular action. In my WebApp I am spawning a new async thread for all the CRM related actions and sending the user to Thank...
4
by: DC Gringo | last post by:
I have some code that creates and writes to an excel file. Right as I response.end() to avoid HTML in the Excel document, I get an exception: --------------- An attempt to log the following...
2
by: xsluser | last post by:
Any Idea why we get this error, its happening in only one page and that too first time user visits that page,in the below "GetData" is a method which gets the data from SQL Server, but some times...
4
by: hitendra15 | last post by:
Hi following is the code which sends file to the browser means user can download file, but the code generates error message Thread Being Aborted., will any one put their thoughts protected void...
4
by: DoronF | last post by:
Hi All, I am getting the below error after having a code like this: Server.Transfer("Thankyou.htm") I tried this code and the same err. Server.Transfer("Thankyou_VRep.htm", False) I am...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
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
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,...

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.