Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host in windows service

  • Thread starter Thread starter Dev1089
  • Start date Start date
D

Dev1089

Guest
Hi,

We are sending bulk mails through windows service using third party(PMT).I am getting bellow exception regularly in our windows service.The logic we have written in this method is ,we are reading more than 600k records from the database and holding it in dataset.From the dataset we are processing 5k records.i.e sending 5k mails at one batch.

Message: [Exception][Message]: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.. [StackTrace]: at OnePointEmailBuilder.ExecuteEmailBuilder.ProcessSingleEmailMessageJob(DataSet dsJobData, String trackReads, String ContentType). [Method]: Void ProcessSingleEmailMessageJob(System.Data.DataSet, System.String, System.String). [Source]: OnePointEmailBuilder. [InnerException]: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size).
Severity: Error

Any body aware of this?

Continue reading...
 
Back
Top