Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. Thread abort exception from windows service when call WCF service method

Thread abort exception from windows service when call WCF service method

Scheduled Pinned Locked Moved WCF and WF
csharpwcfdata-structuresdebugginghelp
1 Posts 1 Posters 20 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jmavn
    wrote on last edited by
    #1

    I have one windows service, which is invoked using commandline client C# application. The functionality of windows service is to execute some Batch jobs. In one of the Batch job, it calls an email service (WCF service) and send mail based on the values passed. It has one operation contract 'SendMail' with the signature as 'SendMail(object[][] parameters, string[] recipients)'. I am getting 'Thread was being aborted exception' after all the mails have been sent. But when I call the email service from console application, I did not receive any exception. I tried changes in configuration to increase timeout, but still the exception is occurring. I checked solution in the net, but I could not solve my problem yet. Can anyone have idea about the reason for this exception. Thanks in advance. The following is the stack trace of the exception which I received. Exception in sendmail : Thread was being aborted. Trace : at System.Net.ConnectStream.WriteHeaders(Boolean async) at System.Net.HttpWebRequest.EndSubmitRequest() at System.Net.HttpWebRequest.GetResponse() at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at SampleBatchJob.EmailServiceRef.IService.SendMail(Object[][] parameters, String[] recipients) at SampleBatchJob.EmailServiceRef.ServiceClient.SendMail(Object[][] parameters, String[] recipients) in c:\Projects\BatchFramework\Arivazhagi\ACA.Batch5.0WC\Samples\SampleBatchJob\Service References\EmailServiceRef\Reference.cs:line 62 at Avanade.ACA.Batch.Batch.SampleBatchJob.EmailBatchJob.Execute(JobExecutionContext context) in c:\Projects\BatchFramework\Arivazhagi\ACA.Batch5.0WC\Samples\SampleBatchJob\EmailBatchJob.cs:line 71

    Thankfully, jm

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups