-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
A connection was successfully established with the server, but then an error occurred during the login process #16528
Comments
@sady4850 is this an Azure SQL server? |
Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64) Jun 17 2011 00:54:03 Copyright (c) Microsoft Corporation Developer Edition (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1) This is 100% consistent |
Thanks @sady4850 We will take a look. |
@sady4850 it seems your issue is related with https://github.com/dotnet/corefx/issues/5187 Try to apply hotfix on your sql server ----Quoted--- The fix for this issue was first released in Cumulative Update 6 for SQL Server 2008 R2 Service Pack 1. For more information about how to obtain this cumulative update package, click the following article number to view the article in the Microsoft Knowledge Base: |
@kkurni are you suspecting this to be the TLS issue? |
Yes based on the sql server and it happened on ubuntu and the error message saying that unable to read data. It most likely stuck when receiving those login bytes during login. The server doesnt response because open ssl split the bytes. |
@sady4850 would it be possible to apply this patch to the server and try connecting from linux again? |
@saurabh500 installing SP3 solved the problem, thanks |
using Coreclr : 1.0.0-rc2-20221 coreclr x64 Ubuntu : 14.04 Connection String : SqlConnection connect = new SqlConnection("Server =XXXX; Trusted_Connection = False; User ID = XX; Password = XXXXXX; Initial Catalog = XXXX"); The Same Console App works on windows Opening SqlServer results in the following exception System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - Attempt by method 'System.Data.SqlClient.SNI.SNITCPHandle..ctor(System.String, Int32, Int64, System.Object, Boolean)' to access method 'System.Net.Sockets.TcpClient.get_Client()' failed.) |
dotnet 1.0.0-beta-001528
Runtime Environment:
OS Name: ubuntu
OS Version: 15.04
OS Platform: Linux
Runtime Id: ubuntu.15.04-x64
System.Data.SqlClient 4.0.0-rc3-23823
ConnectionString : data source=server,port;Initial Catalog=XXXXXXXX;Integrated Security=False;User ID=sa;Password=XXXX;Connect Timeout=150;Encrypt=False
The same console app works on Windows.
Opening SqlConnection results in the following SqlException:
A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 35 - An internal exception was caught) ---> System.IO.IOException: Unable to read data from the transport connection: Unknown error 10054. ---> System.Net.Sockets.SocketException: Unknown error 10054
The text was updated successfully, but these errors were encountered: