gpt4 book ai didi

windows - SQL Server-连接在登录过程中被强行关闭

转载 作者:太空宇宙 更新时间:2023-11-03 13:22:07 25 4
gpt4 key购买 nike

场景如下:

从 Windows Server 2003 到 SQL Server 2005 的连接工作顺利。现在,托管相同 .net Web 应用程序的新 Windows 2012 服务器无法连接到相同的 SQL Server 数据库,它会失败并出现以下错误:

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.)]

由于它在 Windows 2003 中运行良好,我猜问题可能是以下之一:

  1. 向后兼容性问题,因为新盒子是 Windows 2012 而不是 Windows 2003。

  2. 网络连接问题。但是我可以确认网络路径没问题,因为我可以从 Web 服务器远程登录端口 1433 到数据库服务器,并且部分错误消息是

    A connection was successfully established with the server

如有任何帮助,我们将不胜感激。

最佳答案

您需要为 Windows Server 2003 安装此修补程序。它将 TLS_RSA_WITH_AES_128_CBC_SHA AES128-SHATLS_RSA_WITH_AES_256_CBC_SHA AES256-SHA 密码套件添加到 Windows Server 2003。

如果没有将这 2 个密码套件添加到 Windows Server 2003,Windows Server 2008 R2 及更高版本的任何内容都将无法创建到 Windows Server 2003 的 SSL 连接。这包括 SQL Server 连接,以及任何其他依赖于SSL。

为什么?因为 Windows Server 2008 R2 及更高版本没有与 Windows Server 2003 相匹配的密码(出于安全原因,旧密码已从新操作系统中全部删除);因此 Windows Server 2003 会断开连接,因为没有可用的匹配密码。

Windows Server 2003 的 Microsoft 修补程序:https://support.microsoft.com/en-us/help/948963

关于windows - SQL Server-连接在登录过程中被强行关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47765513/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com