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