473,773 Members | 2,365 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Thread was being aborted thrown for background thread (win2003 ser

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
reads data from ms access database (approximately 0,5 GB access db)
with oledb connection and then calculates something and writes to
another database.

I have tracked down that this exception is thrown by IIS in the
following code when the dataadapter should be filled with data from ms
access database or at least it seems that way after running three test trials.

OleDbDataAdapte r dataadapter = new OleDbDataAdapte r(command);
DataSet ds = new DataSet();
dataadapter.Fil l(ds);

And this code should be totally OK as such since the same method is
run about thousand times before this exception is thrown and the
thread is terminated.

Has anyone run to same kind of problem ?
There are many questions in these newsgroups about direct and transfer
commands sending thread was being aborted, but this is not a case for
which that situation would apply. This is a new thread created by the
asp.net code and should run until the operation is finished, but does
not do that right now.

I read that IIS could unload application domain by throwing this
exception if it thinks that a crash,timeout,d eadlock or memory has
been exceeded. But this should not do that since console application
on the same win2003 server runs just fine and on slower and older
win2000 machines the application also performs okey on IIS.

Also tried to change connection timeout parameter of IIS server, but
it did not help (from 120 to 1200)

Thank you in advance for reading and for possible answers that might
help me to figure a way out of this problematic situation.

BR,
Johanna
Nov 18 '05 #1
3 2494
What happens if you run this as a single thread?
Nov 18 '05 #2
Hello Scott,

If I try to run it in a single thread under asp.net you mean? I have not
tried that, but because the background thread takes a lot of time like 15
minutes->one hour to complete it is not good practise to put the main GUI
thread to do this. I mean the UI would not probably wait for that long. But
maybe I could try to do a test of that kind in any case.

BR,
Johanna

"Scott Simons" wrote:
What happens if you run this as a single thread?

Nov 18 '05 #3


"Scott Simons" wrote:
What happens if you run this as a single thread?


I tested this case and what happens is that then IIS does not seem to throw
thread was being aborted. I run one test case like this and it did perform OK.
The question is then why is that ? What could I do to my application so that
the background thread would not be killed...?

BR,

Johanna
Nov 18 '05 #4

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...
0
1164
by: MichaelR | last post by:
I'm getting a curious result from a module using WinInet on the client and IIS 6.0/ASP.NET on the server. Can't really tell if it's a client or a server issue. The client module uses HttpSendRequestEx to open a request and InternetWriteFile to send large text files in chunks. The pseudocode looks like this: - open a request ("POST") - fill in file size in INTERNET_BUFFERS struct
0
1440
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.
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
5180
by: Jeff | last post by:
I have some code that enables users to download the contents of a DataGrid as an Excel file. The following code snippet is the relevant part. It works just fine - meaning specifically that the downloaded Excel file is what I want. The problem is that every time this code runs, my "catch all" exception handler (an HTTP Module) catches the "Thread was being aborted" exception (from System.Threading.Thread.AbortInternal()). What can I do...
4
6073
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);
8
5370
by: =?Utf-8?B?R3JlZyBMYXJzZW4=?= | last post by:
I'm trying to figure out how to modify a panel (panel1) from a backgroundworker thread. But can't get the panel to show the new controls added by the backgroundwork task. Here is my code. In this code there is a panel panel1, that I populate with a lable in the foreground. Then when I click on "button1" a backgroundworker thread in async mode is started. When the backgoundworker thread completes the thread returns a panel to populate...
2
22979
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...
3
1504
by: jediknight | last post by:
Having recently been asked to look into some bugs in one of our old web systems, I keep getting an error message in some try...catch statements that I've put in. Error message is Thread was being aborted This is raised whenever a Response.Redirect was called.
0
9621
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
10264
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
10106
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
10039
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,...
1
7463
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
6717
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
5355
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...
2
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2852
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.