System.Net.Sockets.SocketException: A connection attempt failed because the connected

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fastestindian
    New Member
    • Aug 2009
    • 74

    #1

    System.Net.Sockets.SocketException: A connection attempt failed because the connected

    When I try to send the mail, I am getting following exception.

    System.Net.WebE xception: Unable to connect to the remote server ---> System.Net.Sock ets.SocketExcep tion: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 10.89.22.51:25
    at System.Net.Sock ets.Socket.DoCo nnect(EndPoint endPointSnapsho t, SocketAddress socketAddress)
    at System.Net.Sock ets.Socket.Inte rnalConnect(End Point remoteEP)
    at System.Net.Serv icePoint.Connec tSocketInternal (Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketSt ate state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
    --- End of inner exception stack trace ---
    at System.Net.Serv icePoint.GetCon nection(PooledS tream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout)
    at System.Net.Pool edStream.Activa te(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDel egate asyncCallback)
    at System.Net.Pool edStream.Activa te(Object owningObject, GeneralAsyncDel egate asyncCallback)
    at System.Net.Conn ectionPool.GetC onnection(Objec t owningObject, GeneralAsyncDel egate asyncCallback, Int32 creationTimeout )
    at System.Net.Mail .SmtpConnection .GetConnection( String host, Int32 port)
    at System.Net.Mail .SmtpTransport. GetConnection(S tring host, Int32 port)
    at System.Net.Mail .SmtpClient.Get Connection()
    at System.Net.Mail .SmtpClient.Sen d(MailMessage message)

    This error has started recently.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Double check your configuration to make sure that the proper credentials are used to connect to the email service provider.

    -Frinny

    Comment

    Working...