473,666 Members | 2,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Thread was being aborted. Errors

Hi,
I have an asp.net web app that is intermittently throwing "Thread was being
aborted." errors in my data access component. This seems to occur when the
app is under a heavier than normal load. I don't get any of these errors for
days, then I get a bunch all at once.
I would have thought if the database call was timing out I would get a
timeout
error.
The server is Win 2003 (under VMware), and hosts multiple asp and asp.net
web applications.

This is a sample of the exception details I'm getting:

System.Threadin g.ThreadAbortEx ception: Thread was being aborted.
at System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or behavior)
at
System.Data.Sql Client.SqlComma nd.System.Data. IDbCommand.Exec uteReader(Comma ndBehavior behavior)
at System.Data.Com mon.DbDataAdapt er.FillFromComm and(Object data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
at System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
at System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet)
at NCSUtilities.Da taAccess.Execut eDataset(SqlCon nection connection,
CommandType commandType, String commandText, SqlParameter[] commandParamete rs)
at NCSUtilities.Da taAccess.Execut eDataset(String connectionStrin g,
CommandType commandType, String commandText, SqlParameter[] commandParamete rs)

I got a suggestion to look at the "DefaultAppPool " properties on the web
server, but I'm not sure what settings to modify.

Any ideas on how I could identify the cause or how I could resolve this
would be greatly appreciated.

Thanks,
Keith F

Nov 19 '05 #1
3 3245
Are you maybe "return"ing from within a try/catch? That will give this error.

Hans Kesting
Keith F. wrote:
Hi,
I have an asp.net web app that is intermittently throwing "Thread was
being
aborted." errors in my data access component. This seems to occur
when the
app is under a heavier than normal load. I don't get any of these
errors for
days, then I get a bunch all at once.
I would have thought if the database call was timing out I would get a
timeout
error.
The server is Win 2003 (under VMware), and hosts multiple asp and
asp.net
web applications.

This is a sample of the exception details I'm getting:

System.Threadin g.ThreadAbortEx ception: Thread was being aborted.
at System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
behavior) at
System.Data.Sql Client.SqlComma nd.System.Data. IDbCommand.Exec uteReader(Comma ndBehavior
behavior) at
System.Data.Com mon.DbDataAdapt er.FillFromComm and(Object data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
at System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
at System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet)
at NCSUtilities.Da taAccess.Execut eDataset(SqlCon nection connection,
CommandType commandType, String commandText, SqlParameter[]
commandParamete rs) at NCSUtilities.Da taAccess.Execut eDataset(String
connectionStrin g,
CommandType commandType, String commandText, SqlParameter[]
commandParamete rs)

I got a suggestion to look at the "DefaultAppPool " properties on the
web
server, but I'm not sure what settings to modify.

Any ideas on how I could identify the cause or how I could resolve
this
would be greatly appreciated.

Thanks,
Keith F

Nov 19 '05 #2
Vko
The Response.Redire ct throws this exception (by design).

So if you have a Response.Redire ct (in the Data Access Component ??) in a
try/catch block, this behavior is normal.
"Keith F." wrote:
Hi,
I have an asp.net web app that is intermittently throwing "Thread was being
aborted." errors in my data access component. This seems to occur when the
app is under a heavier than normal load. I don't get any of these errors for
days, then I get a bunch all at once.
I would have thought if the database call was timing out I would get a
timeout
error.
The server is Win 2003 (under VMware), and hosts multiple asp and asp.net
web applications.

This is a sample of the exception details I'm getting:

System.Threadin g.ThreadAbortEx ception: Thread was being aborted.
at System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or behavior)
at
System.Data.Sql Client.SqlComma nd.System.Data. IDbCommand.Exec uteReader(Comma ndBehavior behavior)
at System.Data.Com mon.DbDataAdapt er.FillFromComm and(Object data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
at System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
at System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet)
at NCSUtilities.Da taAccess.Execut eDataset(SqlCon nection connection,
CommandType commandType, String commandText, SqlParameter[] commandParamete rs)
at NCSUtilities.Da taAccess.Execut eDataset(String connectionStrin g,
CommandType commandType, String commandText, SqlParameter[] commandParamete rs)

I got a suggestion to look at the "DefaultAppPool " properties on the web
server, but I'm not sure what settings to modify.

Any ideas on how I could identify the cause or how I could resolve this
would be greatly appreciated.

Thanks,
Keith F

Nov 19 '05 #3
Hans Kesting wrote:
Are you maybe "return"ing from within a try/catch? That will give
this error.
Sorry, "vko" was right, it's not "return" but "Response.Redir ect" that gives this error.

Hans Kesting


Keith F. wrote:
Hi,
I have an asp.net web app that is intermittently throwing "Thread was
being
aborted." errors in my data access component. This seems to occur
when the
app is under a heavier than normal load. I don't get any of these
errors for
days, then I get a bunch all at once.
I would have thought if the database call was timing out I would get
a timeout
error.
The server is Win 2003 (under VMware), and hosts multiple asp and
asp.net
web applications.

This is a sample of the exception details I'm getting:

System.Threadin g.ThreadAbortEx ception: Thread was being aborted.
at System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.Sql Client.SqlComma nd.ExecuteReade r(CommandBehavi or
behavior) at
System.Data.Sql Client.SqlComma nd.System.Data. IDbCommand.Exec uteReader(Comma ndBehavior
behavior) at
System.Data.Com mon.DbDataAdapt er.FillFromComm and(Object data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
at System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior)
at System.Data.Com mon.DbDataAdapt er.Fill(DataSet dataSet)
at NCSUtilities.Da taAccess.Execut eDataset(SqlCon nection connection,
CommandType commandType, String commandText, SqlParameter[]
commandParamete rs) at NCSUtilities.Da taAccess.Execut eDataset(String
connectionStrin g,
CommandType commandType, String commandText, SqlParameter[]
commandParamete rs)

I got a suggestion to look at the "DefaultAppPool " properties on the
web
server, but I'm not sure what settings to modify.

Any ideas on how I could identify the cause or how I could resolve
this
would be greatly appreciated.

Thanks,
Keith F

Nov 19 '05 #4

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

Similar topics

5
3129
by: [Yosi] | last post by:
Why I can't abot a susspended thread. Who can terminat a thread imediatly without consider to its stat or execution?
1
6499
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
3054
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
3
2939
by: Stephen Miller | last post by:
I have an ASP.Net application that sends a NetworkStream to a .Net Service, which has a TcpListener listening on a port for the ASP.Net client. When it receives a request it creates a new thread with the AddressOf a class that runs a long data intensive process that can take between 1-15 minutes and results in the creation of a uniquely named file. Meanwhile, I want my ASP.Net application to sit and wait until the file appears at a...
1
4261
by: Keith F. | last post by:
Hi, I have an asp.net web app that is intermittently throwing "Thread was being aborted." errors in my data access component. This seems to occur when the app is under a heavier than normal load. I don't get any of these errors for days, then I get a bunch all at once. I would have thought if the database call was timing out I would get a timeout error. The server is Win 2003 (under VMware), and hosts multiple asp and asp.net web...
1
662
by: Josef K. | last post by:
I've started getting "Thread was being aborted" errors. This errormessage has me puzzled. I'm using the same very simple approach throughout the application, and it works elsewhere: -- my aspx form declares an instance of a data-layer class with form-level scope Protected WithEvents MyDataLayer as DataLayer -- and a new instance of the class is created in Page_Load:
9
3265
by: esakal | last post by:
Hello, I'm programming an application based on CAB infrastructure in the client side (c# .net 2005) Since my application must be sequencally, i wrote all the code in the UI thread. my problem occurs when i try to show a progress bar. The screen freezes. I know i'm not the first one to ask about it. but i'm looking
0
875
by: DigvijayPratap | last post by:
Hi, This is a big Problem i am struggling with it for a past couple of weeks... and now i am banging my head on th desk to get the solution...i am not using any threads in my class library..which defines the business rules for a web application...No Asynchronous Calls...No response.direct..etc.I Don get any errors in my business rules.But the mailer for reporting errors always prompts the message "Thread was being aborted ".the error message...
2
22967
by: Daniel Knöpfel | last post by:
Hi I am develloping an asp.net 2.0 application. For some tasks (daily notifications to users via email), we use background threads. I rather have this task as background thread of the asp.net application and not as a service as as the installation procedure of a service on the productive system would cause a lot of administrative overhead. The thread is started in the global.asax file on startup. Strangely, after some time, the thread...
0
8438
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
8348
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
8779
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
8549
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
7376
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...
1
6187
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5660
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4356
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2765
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.