调vs报了个sql连接错误

在尝试使用SQL Server 2012连接远程服务器时遇到'已成功与服务器建立连接,但在登录前的握手期间发生错误'的问题。该错误涉及到SSL Provider和超时。解决方案包括检查并卸载可能引起冲突的第三方软件,如巡游加速器,重置LSP连接,并进行系统清理。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - The wait operation timed out.)

SQLServer 2012 已成功与服务器建立连接,但是在登录前的握手期间发生错误。 (provider: SSL Provider, error: 0 - 等待的操作过时。

 

楼主用SQL Server 2012 在连接其他电脑的实例时,一直提示“已成功与服务器建立连接,但是在登录前的握手期间发生错误。 (provider: SSL Provider, error: 0 - 等待的操作过时。”

Google了很多资料,综合自己的问题,并参照官方问题介绍:http://support.microsoft.com/kb/2568167

和另外一位仁兄的博客http://blog.sina.com.cn/s/blog_728bc6a1010182ai.html整理解决方法如下:


  1. 运行CMD命令提示符工具,输入netsh WinSock Show Catalog,
  2. 找到0x20000或者0x66  flag的provider

描述:                              XunYount
提供程序 ID:                        {11C21122-85E1....(什么的忘记了,一段GUID值)
提供程序路径:                     C:\Windows\System32\xunyount.dll
服务标志:                           0x66

经查实,这是巡游加速器的东西,忽然开朗,因为玩LOL,下载的多玩英雄联盟盒子,使用过盒子自带的巡游加速器。


病因已知道,现在是果断卸载巡游加速器(小广告:可用迅雷网游加速器替代,楼主一直在用,感觉不错。),

  1. 在多玩英雄联盟盒子的安装目录有个xunyou的文件夹,直接删除;
  2. 然后在C:\Windows目录下搜索xunyount文件,将其删除;
  3. 现在用管理员身份运行CMD,输入netsh winsock reset并回车(注意,必须是已管理员身份运行,这个重置LSP连接,因为巡游加速修改过LSP。);
  4. 重启即可,如果重启连接还是问题依旧,请重试整个流程。
A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - The wait operation timed out.)

看起来是dotnet4.5引起的。

I have an update on this issue.  It turns out this is being caused by a code change in the .NET framework 4.5 that is interfering with 3rd party software that intercepts Winsock calls. (This kind of software is called a Base Service Provider, or Layered Service Provider).  In short, the 3rd party is going to have to update their software to support .NET 4.5.
Here is the relevant Connect article:
http://connect.microsoft.com/VisualStudio/feedback/details/745004/net-4-5-sql-connection-pre-login-handshake-error

解决:
http://support.microsoft.com/kb/2568167
1.先用"netsh WinSock Show Catalog"看看有谁拦截wsock.
2.找没有0x20000 flag的provider.
If the "Service Flags" value has the 0x20000 bit set then the provider uses IFS handles and will work fine. If the 0x20000 bit is clear (not set), then it is a non-IFS BSP or LSP.
3.发现一个iKu
描述:                               iKu Smart Network LSP
提供程序 ID:                        {11C21122-85E1-48F3-34B6-23D90C730710}
提供程序路径:                       C:\Program Files (x86)\YouKu\common\ikutm.dll
服务标志:                           0x66

 

 

 

我的问题不是上面两个,但也不知道是啥,我删除了一些杀软,比如火绒,禁用了一些启动项,就好了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值