Exchange 2019 EWS错误:Microsoft.交换Web服务.数据ServiceRequestExcept



我正在尝试使用EWS管理的API连接到Exchange 2019。已连接到Exchange 2010、2013、2016和Office 365(Exchange Online(。

我不知道为什么它不适用于Exchange 2019。我目前能够用两台服务器进行测试。两者都不起作用。

错误消息为:

Microsoft.Exchange.WebServices.Data.ServiceRequestException: The request failed. The underlying connection was closed. An unexpected error occurred on a send

也许有人能帮我

谢谢

Exchange 2019强制执行TLS 1.2我建议您尝试添加

System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

它通常会修复问题

最新更新