我们的应用程序有时会抛出此错误:
System.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - An existing connection was forcibly closed by the remote host.) ---> System.ComponentModel.Win32Exception (10054): An existing connection was forcibly closed by the remote host.
该应用程序在一段时间内运行良好,但有时会引发上述异常。到目前为止,很难找到造成这种情况的原因。有人说这与连接数量有关,但我们将其设置为零,因此应将其最大化为大约 32k 连接,我们认为我们不使用。
编辑:看到使用了 SSL 提供程序并且客户端操作系统版本低于我正在考虑 TLS 版本或密码套件的 SQL 服务器操作系统版本。我仍然无法弄清楚为什么同一个客户端有时会使用不同/不兼容的密码套件或 TLS 版本。
最佳答案
当我的源操作系统版本是 windows server 2016 并且目标操作系统是 windows 2012 时,我有同样的经历,在 windows update 发生后,检查 windows 最近的更新。
关于SQL Server : A connection was successfully established with the server, 但随后在登录过程中发生错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58154924/