SQL Server : A connection was successfully established with the server, 但随后在登录过程中发生错误

标签 sql .net sql-server .net-core

我们的应用程序有时会抛出此错误:

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/

相关文章:

c# - 如何在 WP7 中处理 HttpWebRequest 的错误?

SQL Server 从另一个表插入数据

c# - 使用 .sql 文件发布 winform 应用程序

sql-server - 记录表架构更改

mysql - 连接 3 个表 SQL

sql - 有条件的聚合性能

.net - EF5 CF - 更新附加对象

.net - WinForm中如何清除用户控件的内存?

mysql - SQL授予创建表权限

mysql - 选择 none in set