我想问一问我能够从SQL Server
很好地连接到Windows
的可能是什么原因,但是当我尝试使用相同的连接字符串和[C0 ]从server being pingable
,则发生此错误:
已成功与服务器建立连接,但是在登录前握手期间发生错误。 (提供者:TCP提供程序,错误:35-捕获到内部异常)
ex.InnerException {System.Security.Authentication.AuthenticationException:验证失败,请参阅内部异常。---> Interop + OpenSsl + SslException:SSL握手失败,出现OpenSSL错误-SSL_ERROR_SSL。---> Interop + Crypto + OpenSslCryptographicException:错误:1425F102:SSL例程:ssl_choose_client_version:不支持的协议---内部异常堆栈跟踪的结尾---在Interop.OpenSsl.DoSslHandshake处(SafeSslHandle上下文,Byte [] recvBuf,Int32 recvOffset,Int32 recvCount,Byte []&sendBuf,Int32&sendCount)在System.Net.Security.SslStreamPal.HandshakeInternal上(SafeFreeCredentials凭据,SafeDeleteContext&上下文,ArraySegment` 1 inputBuffer,Byte []&outputBuffer,SslAuthenticationOptions sslAuthenticationOptions]
我正在使用Raspbian @ Raspberry Pi
System.Data.SqlClient
。NET Core 3.1
我该如何解决?在此先感谢
您可能需要更新OpenSSL版本。
try
{
using (var connection = new SqlConnection(connStr))
{
connection.Open();
}
}
catch (Exception ex)
{
...
}