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)
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)