Error: Thread was aborted from WaitForSingleObject

Discussion in 'ASP .Net' started by Rachit, Mar 31, 2005.

  1. Rachit

    Rachit Guest

    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)
     
    Rachit, Mar 31, 2005
    #1
    1. Advertising

  2. 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.
     
    =?Utf-8?B?U2NvdHQgU2ltb25z?=, Mar 31, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stephen Miller
    Replies:
    3
    Views:
    4,034
    Stephen Miller
    Jul 2, 2004
  2. Johanna
    Replies:
    0
    Views:
    624
    Johanna
    Oct 13, 2004
  3. =?Utf-8?B?Sm9oYW5uYQ==?=
    Replies:
    3
    Views:
    2,003
    =?Utf-8?B?Sm9oYW5uYQ==?=
    Oct 15, 2004
  4. izik l
    Replies:
    4
    Views:
    6,598
    Mike Smith
    Jan 17, 2005
  5. peppermonkey
    Replies:
    1
    Views:
    269
    Gregory Brown
    Feb 10, 2007
Loading...

Share This Page