ITPub博客

首页 > 应用开发 > > 升级至 .NET Core 3.0 Preview 5 遇到问题

升级至 .NET Core 3.0 Preview 5 遇到问题

作者:hblyl 时间:2019-08-30 11:39:02 0 删除 编辑

将一个项目从 .net core 3.0 preview 4 升级至 .net core 3.0 preview 5 之后,SqlClient 出现异常,无法连接数据,报错信息如下:

System.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught) ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. ---> Interop+OpenSsl+SslException: SSL Handshake failed with OpenSSL error - SSL_ERROR_SSL. ---> Interop+Crypto+OpenSslCryptographicException: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
   --- End of inner exception stack trace ---
   at Interop.OpenSsl.DoSslHandshake(SafeSslHandle context, Byte[] recvBuf, Int32 recvOffset, Int32 recvCount, Byte[]& sendBuf, Int32& sendCount)
   at System.Net.Security.SslStreamPal.HandshakeInternal(SafeFreeCredentials credential, SafeDeleteContext& context, ArraySegment`1 inputBuffer, Byte[]& outputBuffer, SslAuthenticationOptions sslAuthenticationOptions)
   --- End of inner exception stack trace ---
   at System.Net.Security.SslStream.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, ExceptionDispatchInfo exception)
...
   at System.Data.SqlClient.SNI.SNITCPHandle.EnableSsl(UInt32 options)
...

请问如何解决?

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3373/viewspace-3132598/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-08-14

  • 博文量
    71
  • 访问量
    544