473,406 Members | 2,956 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,406 software developers and data experts.

Thread was being aborted error message

I have this web application that runs for about 5 minutes doing to
database processing, about 50% of the time I get the error message
Thread was being aborted.

I am looking for hint at where to look, I've been banging my head on
this issue for a couple of months (when I have time to bang my head on
this).

Here's some information on my app:

..Net 1.1
I am not using either response.redirect or server.transfer
I'm not threading anything (single synchronous thread)
My ASP.Net UI calles a .Net class for the processing
Tested on 3 different dedicated IIS servers with same results

Works fine if I install it on a desktop (any desktop) running IIS
Works irratically when I install it on a server running either Windows
Server 2000 or Windows Server 2003

What should I be looking at?

Aug 3 '06 #1
5 5218
Alex,
Are you saying that a particular ASP.NET web page kicks off some process
that runs for 5 minutes? The default ASP.NET Script timeout is 90 seconds.
You can change this, and you can also change the httpRuntime executionTimeout
value to a larger number by bringing this element into your web.config to
override the setting in machine.config.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Alex A." wrote:
I have this web application that runs for about 5 minutes doing to
database processing, about 50% of the time I get the error message
Thread was being aborted.

I am looking for hint at where to look, I've been banging my head on
this issue for a couple of months (when I have time to bang my head on
this).

Here's some information on my app:

..Net 1.1
I am not using either response.redirect or server.transfer
I'm not threading anything (single synchronous thread)
My ASP.Net UI calles a .Net class for the processing
Tested on 3 different dedicated IIS servers with same results

Works fine if I install it on a desktop (any desktop) running IIS
Works irratically when I install it on a server running either Windows
Server 2000 or Windows Server 2003

What should I be looking at?

Aug 3 '06 #2
Peter,

The script timeout was set to 900 seconds (15 minutes), I had
encountered this issue on another project.

The issue is sporadic, it'll either work or not and when it doesn't it
a thread abort message.

Nothing fancy is being done, it's mainly reading about 300 invoices
from a database converting the data into a format and saving it to a
file on a server.

Peter wrote:
Alex,
Are you saying that a particular ASP.NET web page kicks off some process
that runs for 5 minutes? The default ASP.NET Script timeout is 90 seconds.
You can change this, and you can also change the httpRuntime executionTimeout
value to a larger number by bringing this element into your web.config to
override the setting in machine.config.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Alex A." wrote:
I have this web application that runs for about 5 minutes doing to
database processing, about 50% of the time I get the error message
Thread was being aborted.

I am looking for hint at where to look, I've been banging my head on
this issue for a couple of months (when I have time to bang my head on
this).

Here's some information on my app:

..Net 1.1
I am not using either response.redirect or server.transfer
I'm not threading anything (single synchronous thread)
My ASP.Net UI calles a .Net class for the processing
Tested on 3 different dedicated IIS servers with same results

Works fine if I install it on a desktop (any desktop) running IIS
Works irratically when I install it on a server running either Windows
Server 2000 or Windows Server 2003

What should I be looking at?
Aug 3 '06 #3
Besides the script timeout, etc. You also have both a connection timeout and
a command timeout (that's with SQLClient). Very often developers forget about
the commandTimeout property.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Alex A." wrote:
Peter,

The script timeout was set to 900 seconds (15 minutes), I had
encountered this issue on another project.

The issue is sporadic, it'll either work or not and when it doesn't it
a thread abort message.

Nothing fancy is being done, it's mainly reading about 300 invoices
from a database converting the data into a format and saving it to a
file on a server.

Peter wrote:
Alex,
Are you saying that a particular ASP.NET web page kicks off some process
that runs for 5 minutes? The default ASP.NET Script timeout is 90 seconds.
You can change this, and you can also change the httpRuntime executionTimeout
value to a larger number by bringing this element into your web.config to
override the setting in machine.config.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Alex A." wrote:
I have this web application that runs for about 5 minutes doing to
database processing, about 50% of the time I get the error message
Thread was being aborted.
>
I am looking for hint at where to look, I've been banging my head on
this issue for a couple of months (when I have time to bang my head on
this).
>
Here's some information on my app:
>
..Net 1.1
I am not using either response.redirect or server.transfer
I'm not threading anything (single synchronous thread)
My ASP.Net UI calles a .Net class for the processing
Tested on 3 different dedicated IIS servers with same results
>
Works fine if I install it on a desktop (any desktop) running IIS
Works irratically when I install it on a server running either Windows
Server 2000 or Windows Server 2003
>
What should I be looking at?
>
>

Aug 3 '06 #4
The SQL timeout is set to 5 minutes, but reading the actual database
only takes a second or two.

I think I've made sure every possible timeout is set to a high number,
not that I'm aware of every possible place a timeout might occur but I
think I've covered the basic ones that you've mentionned.

Also what I've tried to do is try and pin point where the error is
occuring.
I've set up a big try catch using the ThreadException but it never hits
my
ThreadException, I've put the ThreadException where my call to the
external Class Library is made so if the ThreadException occurs in
there it should catch it but it never does.

I am completly baffled.

Peter wrote:
Besides the script timeout, etc. You also have both a connection timeout and
a command timeout (that's with SQLClient). Very often developers forget about
the commandTimeout property.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Alex A." wrote:
Peter,

The script timeout was set to 900 seconds (15 minutes), I had
encountered this issue on another project.

The issue is sporadic, it'll either work or not and when it doesn't it
a thread abort message.

Nothing fancy is being done, it's mainly reading about 300 invoices
from a database converting the data into a format and saving it to a
file on a server.

Peter wrote:
Alex,
Are you saying that a particular ASP.NET web page kicks off some process
that runs for 5 minutes? The default ASP.NET Script timeout is 90 seconds.
You can change this, and you can also change the httpRuntime executionTimeout
value to a larger number by bringing this element into your web.config to
override the setting in machine.config.
Peter
>
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
>
>
>
>
"Alex A." wrote:
>
I have this web application that runs for about 5 minutes doing to
database processing, about 50% of the time I get the error message
Thread was being aborted.

I am looking for hint at where to look, I've been banging my head on
this issue for a couple of months (when I have time to bang my head on
this).

Here's some information on my app:

..Net 1.1
I am not using either response.redirect or server.transfer
I'm not threading anything (single synchronous thread)
My ASP.Net UI calles a .Net class for the processing
Tested on 3 different dedicated IIS servers with same results

Works fine if I install it on a desktop (any desktop) running IIS
Works irratically when I install it on a server running either Windows
Server 2000 or Windows Server 2003

What should I be looking at?
Aug 3 '06 #5
Alex,
Hook the Application_Error event in Global.asax and use:

Exception ex=Server.GetLastError.GetBaseException()
// log or report the exception here

Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Alex A." wrote:
The SQL timeout is set to 5 minutes, but reading the actual database
only takes a second or two.

I think I've made sure every possible timeout is set to a high number,
not that I'm aware of every possible place a timeout might occur but I
think I've covered the basic ones that you've mentionned.

Also what I've tried to do is try and pin point where the error is
occuring.
I've set up a big try catch using the ThreadException but it never hits
my
ThreadException, I've put the ThreadException where my call to the
external Class Library is made so if the ThreadException occurs in
there it should catch it but it never does.

I am completly baffled.

Peter wrote:
Besides the script timeout, etc. You also have both a connection timeout and
a command timeout (that's with SQLClient). Very often developers forget about
the commandTimeout property.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Alex A." wrote:
Peter,
>
The script timeout was set to 900 seconds (15 minutes), I had
encountered this issue on another project.
>
The issue is sporadic, it'll either work or not and when it doesn't it
a thread abort message.
>
Nothing fancy is being done, it's mainly reading about 300 invoices
from a database converting the data into a format and saving it to a
file on a server.
>
Peter wrote:
Alex,
Are you saying that a particular ASP.NET web page kicks off some process
that runs for 5 minutes? The default ASP.NET Script timeout is 90 seconds.
You can change this, and you can also change the httpRuntime executionTimeout
value to a larger number by bringing this element into your web.config to
override the setting in machine.config.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




"Alex A." wrote:

I have this web application that runs for about 5 minutes doing to
database processing, about 50% of the time I get the error message
Thread was being aborted.
>
I am looking for hint at where to look, I've been banging my head on
this issue for a couple of months (when I have time to bang my head on
this).
>
Here's some information on my app:
>
..Net 1.1
I am not using either response.redirect or server.transfer
I'm not threading anything (single synchronous thread)
My ASP.Net UI calles a .Net class for the processing
Tested on 3 different dedicated IIS servers with same results
>
Works fine if I install it on a desktop (any desktop) running IIS
Works irratically when I install it on a server running either Windows
Server 2000 or Windows Server 2003
>
What should I be looking at?
>
>
>
>

Aug 3 '06 #6

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...
3
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...
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: 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....
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...
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...
5
by: Jimi | last post by:
Hi all, I have a user control which raises an event to the parent page when a person clicks on a link in a datagrid. In the event handler inside the parent page I construct a url to redirect to...
9
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...
2
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...
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: 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
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,...
0
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...
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...

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.