Connection timeout after upgrading to the latest version: Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=16155; handshake=33;
If add Connection Timeout=60 to the connection string, the connection can succeed; alternatively, using AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.UseManagedNetworkingOnWindows", true); can also make the connection succeed.
Connection timeout after upgrading to the latest version: Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=16155; handshake=33;
If add Connection Timeout=60 to the connection string, the connection can succeed; alternatively, using AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.UseManagedNetworkingOnWindows", true); can also make the connection succeed.