我在尝试连接服务器时遇到此错误:
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream.
我已经浏览了之前的所有问题和答案。但是,我无法更改代码。程序一直正常工作,直到服务器发生某些更新或问题。
服务器是 Windows Server 2008 R2 SP1,运行 XAMPP 版本:1.8.3
该程序是在.NET Framework 2.0下开发的
如何从服务器端解决这个问题?服务器在我的控制之下,我有完全访问权限。
编辑: 我仔细检查了服务器。 Windows 更新已关闭。我对服务器到底发生了什么感到非常困惑。
最佳答案
您可以尝试添加
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;
关于.net - 解决 "Received an unexpected EOF or 0 bytes from the transport stream"服务器端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47802380/