SQL 登录前服务器握手超时错误

SQL Server handshake timeout error at the pre-login

我在远程服务器上 运行 VS 2015 和 SQL Server 2008 R2。

当我尝试通过 SSMS 连接到我的数据库时,一切正常。当我尝试通过 Visual Studio 服务器资源管理器连接时,它也工作正常,但是当我通过 C# SqlClient 连接时,它超时。

我一直在使用集成安全性。

我同事的电脑上运行一切正常。

是什么原因造成的?我该如何调试它?

错误信息:

Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=1879; handshake=1

简单地删除了你的解决方案并从我们的版本控制中重新导入它并且它起作用了(重新启动是不够的)