【发布时间】:2013-01-23 12:04:19
【问题描述】:
我正在尝试使用以下连接字符串连接到我们的 sql 服务器
<add name="siteDB" connectionString="Data Source=xxxxx\sql_2005;Initial Catalog=Intranet;User ID=username;Password=password" providerName="System.Data.SqlClient"/>
但我收到此错误
A connection was successfully established with the server, but then an error occurred during the pre-login handshake
这只是 Web 应用程序编译为 .net 4 时的问题,.net 2 似乎可以正常工作
我尝试了以下没有成功
TrustServerCertificate=True
在连接字符串中.. 不高兴
也试过
TCP/IP protocols enabled
named pipes enabled
使用具有正确权限的新设置帐户
有什么想法吗?
谢谢
自然
【问题讨论】: