Error: Thread was aborted from WaitForSingleObject

R

Rachit

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.WaitForSingleObject(HandleRef
handle, Int32 timeout)
at
System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(IntPtr
userToken, String cmd, String currentDir, TempFileCollection tempFiles,
String& outputName, String& errorName, String trueCmdLine)
at System.CodeDom.Compiler.Executor.ExecWaitWithCapture(IntPtr
userToken, String cmd, String currentDir, TempFileCollection tempFiles,
String& outputName, String& errorName, String trueCmdLine)
at System.CodeDom.Compiler.CodeCompiler.Compile(CompilerParameters
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.FromSourceBatch(CompilerParameters
options, String[] sources)
at
System.CodeDom.Compiler.CodeCompiler.FromSource(CompilerParameters
options, String source)
at
System.CodeDom.Compiler.CodeCompiler.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSource(CompilerParameters
options, String source)
at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[]
xmlMappings)
at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[]
mappings)
at System.Web.Services.Protocols.SoapClientType..ctor(Type type)
at System.Web.Services.Protocols.SoapHttpClientProtocol..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)
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top