使用SqlOledb成功连接但无法使用sqlClient连接

时间:2012-06-18 08:03:04

标签: sqlclient

Hy朋友,

我整天都在努力解决这个问题。我在iis 7上运行了asp .net 4.0 Web应用程序。在不在数据库上执行连接时运行良好。

我正在使用sqlserver 2005.当我使用SqlClient连接到服务器时,它会产生如下错误:

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

但是当我使用sqloledb连接到我的远程数据库,然后成功连接。如果有人能就我的问题给我一些解决方案,我将不胜感激。

谢谢。

0 个答案:

没有答案