By Gazza T


2017-09-15 00:06:31 8 Comments

I have an aspx webpage which gets called each day where i then run some different functions. Some do some sql changes, others send emails out.

The main function was meant to send out 150 emails, it only sent 10 and i got the following error. Most of the time it works fine.

Any ideas why this would have happened? app pool? number of concurrent sql connections hit the limit?

System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: The read operation failed, see inner exception. ---> System.Threading.ThreadAbortException: Thread was being aborted. at System.Net.UnsafeNclNativeMethods.OSSOCK.recv(IntPtr socketHandle, Byte* pinnedBuffer, Int32 len, SocketFlags socketFlags) at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, SocketError& errorCode) at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count) at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) --- End of inner exception stack trace --- at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.TlsStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.Net.DelegatedStream.Read(Byte[] buffer, Int32 offset, Int32 count) at System.Net.BufferedReadStream.Read(Byte[] buffer, Int32 offset, Int32 count) at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine) at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller) at System.Net.Mail.CheckCommand.Send(SmtpConnection conn, String& response) at System.Net.Mail.DataStopCommand.Send(SmtpConnection conn) at System.Net.Mail.SmtpConnection.OnClose(Object sender, EventArgs args) at System.Net.ClosableStream.Close() at System.Net.Mail.MailWriter.Close() at System.Net.Mail.SmtpClient.Send(MailMessage message) --- End of inner exception stack trace --- at System.Net.Mail.SmtpClient.Send(MailMessage message) at EmailFunctions.SendEmail(String strToAddress, String strFromAddress, String strFromName, String strSubject, String strRecipientName, String strBody, String strEmbeddedImagePath, String strEmbeddedImageName, String strCCReminderEmail)

0 comments

Related Questions

Sponsored Content

1 Answered Questions

WCF communication error

3 Answered Questions

[SOLVED] SendGrid Unable to read data from the transport connection: net_io_connectionclosed

2 Answered Questions

3 Answered Questions

[SOLVED] How to send email in asp.net using c# to any email address using gmail address

  • 2012-12-24 18:42:06
  • Ahmad Ahsan
  • 9177 View
  • 0 Score
  • 3 Answer
  • Tags:   c# asp.net email

0 Answered Questions

WCF service - connection was forcibly closed by the remote host

  • 2014-06-12 13:32:11
  • SelvirK
  • 2347 View
  • 0 Score
  • 0 Answer
  • Tags:   c# asp.net .net wcf

1 Answered Questions

1 Answered Questions

[SOLVED] Email not working on ASP.net

  • 2015-10-04 14:02:49
  • AnNaMaLaI
  • 814 View
  • 0 Score
  • 1 Answer
  • Tags:   asp.net smtpclient

2 Answered Questions

[SOLVED] Accessing Webservice which is hosted on https server

Sponsored Content