Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Thread was being aborted error message

Reply
Thread Tools

Thread was being aborted error message

 
 
Alex A.
Guest
Posts: n/a
 
      08-03-2006
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?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      08-03-2006
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?
>
>

 
Reply With Quote
 
 
 
 
Alex A.
Guest
Posts: n/a
 
      08-03-2006
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?
> >
> >


 
Reply With Quote
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      08-03-2006
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?
> > >
> > >

>
>

 
Reply With Quote
 
Alex A.
Guest
Posts: n/a
 
      08-03-2006
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?
> > > >
> > > >

> >
> >


 
Reply With Quote
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      08-03-2006
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?
> > > > >
> > > > >
> > >
> > >

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Message: Thread was being aborted. DoronF ASP .Net 4 01-08-2008 01:02 AM
Thread being aborted error message. jediknight ASP .Net 3 08-08-2007 01:03 AM
Thread was being aborted error message Jimi ASP .Net 5 04-10-2006 08:18 PM
Thread was being aborted in win2003 server. Back ground thread reading MS access database, no redirects or transfers. Johanna ASP .Net 0 10-13-2004 01:32 PM
"Thread was being aborted" error from WebApp using Thread.Sleep. Stephen Miller ASP .Net 3 07-01-2004 11:50 PM



Advertisments