Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Error: Thread was aborted from WaitForSingleObject

Reply
Thread Tools

Error: Thread was aborted from WaitForSingleObject

 
 
Rachit
Guest
Posts: n/a
 
      03-31-2005
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 you Page on
Parent thread. The Spawned thread aborts with the message "Thread Was
Aborted". This does not happen on development machines. Only production
machine seems to have this probelm. Is it related to the load on
production server? No idea..am stuck badly.

Error :Thread was being aborted.
Error Stack Trace :
at Microsoft.Win32.SafeNativeMethods.WaitForSingleObj ect(HandleRef
handle, Int32 timeout)
at
System.CodeDom.Compiler.Executor.ExecWaitWithCaptu reUnimpersonated(IntPtr
userToken, String cmd, String currentDir, TempFileCollection tempFiles,
String& outputName, String& errorName, String trueCmdLine)
at System.CodeDom.Compiler.Executor.ExecWaitWithCaptu re(IntPtr
userToken, String cmd, String currentDir, TempFileCollection tempFiles,
String& outputName, String& errorName, String trueCmdLine)
at System.CodeDom.Compiler.CodeCompiler.Compile(Compi lerParameters
options, String compilerDirectory, String compilerExe, String
arguments, String& outputFile, Int32& nativeReturnValue, String
trueArgs)
at
System.CodeDom.Compiler.CodeCompiler.FromFileBatch (CompilerParameters
options, String[] fileNames)
at
System.CodeDom.Compiler.CodeCompiler.FromSourceBat ch(CompilerParameters
options, String[] sources)
at
System.CodeDom.Compiler.CodeCompiler.FromSource(Co mpilerParameters
options, String source)
at
System.CodeDom.Compiler.CodeCompiler.System.CodeDo m.Compiler.ICodeCompiler.CompileAssemblyFromSource (CompilerParameters
options, String source)
at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[]
xmlMappings)
at System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[]
mappings)
at System.Web.Services.Protocols.SoapClientType..ctor (Type type)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol..ctor()
at Microsoft.Crm.Platform.Proxy.CRMActivity..ctor()
at c360.WebConnect.CrmEntities.ᜀ(ICredentials A_0, CUserAuth A_1,
String A_2, String A_3, String A_4, String A_5, String A_6, String A_7,
String A_8, String A_9, String A_10, HttpContext A_11)
at c360.WebConnect.CrmEntities.ᜁ(ICredentials A_0, CUserAuth A_1,
String A_2, String A_3, String A_4, String A_5, String A_6, String A_7,
String A_8, String A_9, String A_10, HttpContext A_11)

 
Reply With Quote
 
 
 
 
=?Utf-8?B?U2NvdHQgU2ltb25z?=
Guest
Posts: n/a
 
      03-31-2005
I think that when your response ends all threads that you spawned get
aborted. You could try calling Response.Redirect("success.aspx",false) and
see if that helps. The false at the end tells asp.net to not abort the
thread.
 
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
Rake and rake aborted! Rake aborted! undefined method `gem' for main:Object peppermonkey Ruby 1 02-10-2007 04:43 AM
Mutexes and WaitForSingleObject() izik l C++ 4 01-17-2005 10:47 PM
Thread was being aborted thrown for background thread (win2003 ser =?Utf-8?B?Sm9oYW5uYQ==?= ASP .Net 3 10-15-2004 01:35 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