我们面临与服务器中启用了SSRS Report
后TLS 1.2的问题。
错误:
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.ComponentModel.Win32Exception: The client and server cannot communicate, because they do not possess a common algorithm
答案 0 :(得分:0)
我们可以通过将以下代码添加到我们的C#应用程序中来解决该问题:
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12