Hi,
I am getting the following error in my application:
Exception Type: System.Threading.ThreadAbortException
ExceptionState: System.Web.HttpApplication+CancelModuleException
Message: Thread was being aborted.
TargetSite: System.Data.SqlClient.SqlDataReader
ExecuteReader(System.Data.CommandBehavior, System.Data.SqlClient.RunBehavior,
Boolean)
The code where threading is used is:
Dim PSSMailerNewThread As Thread
Dim PSSMailerQueryThreadStart As New ThreadStart(AddressOf RunQuery)
PSSMailerNewThread = New Thread(PSSMailerQueryThreadStart)
PSSMailerNewThread.IsBackground = True
PSSMailerNewThread.Name = "PSSMailerQueryThread"
PSSMailerNewThread.Start()
Can you please help me in understanding the reason for this error and what I
should do to avoid this error?
Thanks,
Mahita
Richard Blewett [DevelopMentor] - 13 Oct 2004 12:43 GMT
My guess is your AppDomain was being recycled and so all the threads running in it were aborted (thats the standard exception that gets thrown on the thread when it is aborted)
Regards
Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.framework.clr/<CE482967-9FAF-4A2D-BF24-4C04120E9E1C@microsoft.com>
Hi,
I am getting the following error in my application:
Exception Type: System.Threading.ThreadAbortException
ExceptionState: System.Web.HttpApplication+CancelModuleException
Message: Thread was being aborted.
TargetSite: System.Data.SqlClient.SqlDataReader
ExecuteReader(System.Data.CommandBehavior, System.Data.SqlClient.RunBehavior,
Boolean)
The code where threading is used is:
Dim PSSMailerNewThread As Thread
Dim PSSMailerQueryThreadStart As New ThreadStart(AddressOf RunQuery)
PSSMailerNewThread = New Thread(PSSMailerQueryThreadStart)
PSSMailerNewThread.IsBackground = True
PSSMailerNewThread.Name = "PSSMailerQueryThread"
PSSMailerNewThread.Start()
Can you please help me in understanding the reason for this error and what I
should do to avoid this error?
Thanks,
Mahita
[microsoft.public.dotnet.framework.clr]