linux 连sqlserver 2008数据库报这个错ssl 返回
dshake failed)DbType="SqlServer";ConfigId="".^M
English Message : Connection open error . A connection was successfully established with the server, but then an error occurred during the pre-log
in handshake. (provider: SSL Provider, error: 31
热忱回答(6)
-
中雪 VIP02周前
】[SmartCity.Api.GlobalExceptionFilter] 出错:request.Path:/api/WorkCert/GetMajors,userId:74553F08C67A473CBAE9CCDEFC9484D1,body:
SqlSugar.SqlSugarException: 中文提示 : 连接数据库过程中发生错误,检查服务器是否正常连接字符串是否正确,错误信息:A connection was successfully es
tablished with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 31 - Encryption(ssl/tls) han
dshake failed)DbType="SqlServer";ConfigId="".^M
English Message : Connection open error . A connection was successfully established with the server, but then an error occurred during the pre-log
in handshake. (provider: SSL Provider, error: 31 - Encryption(ssl/tls) handshake failed)DbType="SqlServer";ConfigId=""
at SqlSugar.Check.Exception(Boolean isException, String message, String[] args)
at SqlSugar.AdoProvider.CheckConnection()
at SqlSugar.SqlServerProvider.GetCommand(String sql, SugarParameter[] parameters)
at SqlSugar.AdoProvider.GetDataSetAll(String sql, SugarParameter[] parameters)
at SqlSugar.AdoProvider.GetDataTable(String sql, SugarParameter[] parameters)
at SmartCity.Business.OdbcBaseBusiness.GetDataTable(String select_sql, OdbcParameter[] parameters)
at SmartCity.Business.Third.WorkCertBusiness.GetMajorsAsync(Int32 major)
at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation)
at SmartCity.Util.CastleInterceptor.InterceptAsync[TResult](IInvocation invocation, Func`2 proceed)
at SmartCity.Api.Controllers.Third.WorkCertController.GetMajorsAsync(Int32 major)
at lambda_method1572(Closure , Object )
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMet
hodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, Va
lueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker
, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTa
sk, State next, Scope scope, Object state, Boolean isCompleted)
0 回复 -
fate sta VIP02周前
https://learn.microsoft.com/zh-cn/sql/connect/ado-net/sqlclient-troubleshooting-guide?view=sql-server-ver15
0 回复 -
中雪 VIP02周前
都试过,没有解决,不知道哪里有问题。
0 回复 -
fate sta VIP02周前
@中雪:08Linux配置比较复杂,最简单方式升级sqlsever 2016+
0 回复 -
中雪 VIP02周前0 回复
-
中雪 VIP04天前
而且我这个麒麟linux arm64版本的,odbc也装不了 x64可以
0 回复