Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SqlException, provider: TCP Provider, error: 35 - An internal exception was caught)

I'm on Ubuntu 18.04 + NetCore 2.2 + Sql Server and when I try to query my DbContext in a controller, I have the following error:

An unhandled exception occurred while processing the request. AuthenticationException: The remote certificate is invalid according to the validation procedure.

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)

How can I fix that?

like image 833
f.mujica Avatar asked Oct 30 '25 07:10

f.mujica


1 Answers

I was getting the same error but changing the Encrypt value from True to False it worked.

like image 170
M S Alam Avatar answered Nov 01 '25 20:11

M S Alam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!