-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.InvalidOperationException: 'Internal connection fatal error.' #1154
Comments
Hi @fraserbooth Thanks for opening a new ticket for this one, could you check if SSMS also behaves same way? |
Thank you for following up over here :) I explored both SSMS and sqlcmd, both of which are still behaving as expected. It is only via the .NET Core 3.1 solutions that I'm able to reproduce this. |
Hi @fraserbooth Could you also test with System.Data.SqlClient (.NET Core) to get a better picture of scope of issue. |
Well that was interesting, and hopefully will shed more light :) Using System.Data.SqlClient doesn't give the error, and Microsoft.Data.SqlClient works up to v2.0, and starts failing from v2.1 onwards... Does that help identify where the problem might be? I guess at some point then the approach connections or drivers changed? Thank you for your continued exploration :) All the best, Fraser |
I believe your issue is similar to #1151 then. To resolve, please ensure TLS 1.3 is Disabled for Server as SQL Server doesn't support TLS 1.3 right now. |
Hi @cheenamalhotra , sorry for the delayed response, I've been away this last week. I think I made the correct registry changes to disable TLS 1.3, but unfortunately this didn't fix the problem. I am however getting a new error of "Failed to generate SSPI context." which is at "Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)\r\n at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasC..." Does that give any more clues? Thank you again for all your help :) |
Hi @fraserbooth
I'm suspecting this might be related to Kerberos authentication as we fixed some issues related to SPN validation. Could you verify your SPN configuration is correct? Alternatively, you could also try to disable/enable Named Pipes by altering connection string ( |
Thank you for all your help with this. TLS 1.3 seemed to be the main culprit :) |
Further to the discussion on issue #1116, here is a fresh issue as my situation appears to differ slightly in its root cause.
On my development machine, I've recently started experiencing a System.InvalidOperationException: 'Internal connection fatal error.' with .NET Core 3.1 and Microsoft.Data.SqlClient 3.0.0 on the latest stable as well as the pre-release 1,2&3 with the following code:
The stack trace is:
This issue started for me when I was forced to apply the latest Windows Update (KB5003637). I'm working on Win 10 Pro with VS2019 (16.9.4).
...any thoughts on ways to investigate and resolve this?
I'm using:
Microsoft SQL Server Developer (64-bit) 15.0.4138.2
Windows 10 Pro (v2004 build 19041.1052) updated as far as KB5003637
The text was updated successfully, but these errors were encountered: