我在Ubuntu 18.04+NetCore 2.2+SQL Server上,当我试图在控制器中查询我的DbContext时,我有以下错误:
处理请求时出现未处理的异常。根据验证过程,远程证书无效。
System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, ExceptionDispatchInfo exception)
SqlException: 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.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, uint waitForMultipleObjectsTimeout, bool allowCreate, bool onlyOneCheckConnection, DbConnectionOptions userOptions, out DbConnectionInternal connection)
我怎么才能解决这个问题呢?
2条答案
按热度按时间u3r8eeie1#
我收到了相同的错误,但将加密值从True更改为False后,它就起作用了。
t1rydlwq2#
这里也有同样的问题。我已将SQL主机名添加到我的主机文件中,并且无需使用IP即可进行连接。我希望它能帮上忙