无法从Exchange服务器正常拉取邮件,log中可以看到: The underlying connection was closed 远程主机强迫关闭了一个现有的连接。

leoliu 2020-12-18 · 8个月前
0 372

【问题】Exchange拉取邮件保存,看log可以看到“远程主机强迫关闭了一个现有的连接。”之类的。


【对策】把协议从SSL3.0修改为TLS1.2 即可


【log】

2020-12-18 16:43:05,224 [21] [ERROR] [retrieveEmails] Exchange拉取邮件发送错误! 错误:Microsoft.Exchange.WebServices.Data.ServiceRequestException: The request failed. The underlying connection was closed: An unexpected error occurred on a send. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: 远程主机强迫关闭了一个现有的连接。. ---> System.Net.Sockets.SocketException: 远程主机强迫关闭了一个现有的连接。
at System.Net.Sockets.Socket.BeginReceive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)
at System.Net.Sockets.NetworkStream.BeginRead(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
--- End of inner exception stack trace ---
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.PooledStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.Exchange.WebServices.Data.EwsHttpWebRequest.Microsoft.Exchange.WebServices.Data.IEwsHttpWebRequest.GetResponse()
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)
--- End of inner exception stack trace ---
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(IEwsHttpWebRequest& request)
at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()
at Microsoft.Exchange.WebServices.Data.ExchangeService.BindToFolder(FolderId folderId, PropertySet propertySet)
at Microsoft.Exchange.WebServices.Data.ExchangeService.BindToFolder[TFolder](FolderId folderId, PropertySet propertySet)
at iBot.Core.Utils.Mail.ExchangeRetrieve.＀＀＀ꠀ(ExchangeService , FolderId , List`1 , List`1& , CheckedEmailGeneralInfo& )

论坛帖子(共 0 条评论)

  • 最新留言
  • 最近热帖
  • 最热词云

属于iBot的bbs

在这里,您可以提问,回答,分享,诉说,这是个属于所有iBot用户的社区,欢迎您的加入!