I connect to sql server 2008 the connection was terminated.
A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 2 - Connection was terminated: Connection was terminated)
the code is:
var user = await _context.Users.AsNoTracking().FirstOrDefaultAsync(x => x.UserName == UserName);
is it the tls version not match? how to check database's tls version?
I do not know why I can not connect
my connectionstring has
if not the error was :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
i am using .net 7.0;
and in macos.11.6.5
I have identical problem when I updated my project dotnet version from 6 to 7. And I have Sql Server 2008 (and cant change this) too. Do you have some ideas how to fix?