Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / October 2004

Tip: Looking for answers? Try searching our database.

Threading

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mahita - 13 Oct 2004 03:59 GMT
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]

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.