473,796 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Redirec t, 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 8953
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.goo glegroups.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.Redirec t, 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.Redirec t, 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 ThreadAbortExce ption 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.Redire ct 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, "EndRespons e". 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.Redire ct("MyNewPage.a spx", 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.goo glegroups.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.Redirec t, 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.redire ct 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.Redirec t).
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.goo glegroups.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.Redirec t, 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
6510
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 is a simple details page from a link selected from another page. The details page calls a procedure that calls our database, returns a recordset, and does some simple binding to some web controls. This page works for most of our customers. For...
1
3082
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 stateInfo) at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse) at ..." It doesn't interfere with the functionality and is transparent, and the only
0
1442
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 the same application in windows 2000 professional computers that are also lot older and less effective.
3
2495
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 professional computers that are also lot older and less effective. And this error does not occure if this thread is run by console application. This asp.net gui application starts a background thread that mainly
1
1768
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 you Page on Parent thread. The Spawned thread aborts with the message "Thread Was Aborted". This does not happen on development machines. Only production machine seems to have this probelm. Is it related to the load on production server? No...
4
3043
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 error failed:System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.End()
2
568
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 it is taking time to get data and throwing this error i think it has to throw "Timed Out" instead of this "Thread Abort" error. any idea why we get this error? Exception Type: System.Threading.ThreadAbortException ExceptionState:...
4
6074
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 SendFileToBrowser(string strpath) { try { FileInfo objFileInfo = new FileInfo(strpath);
4
2553
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 sending an e-mail to a user and then re-direct a page with a thank you
0
9673
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9525
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10452
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10221
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10169
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9050
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.