-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
SqlClient cannot connect to server from Linux/OS X #15595
Comments
cc @saurabh500 |
I ran the similar scenario in the CoreFX test. The test succeeded for me. The connectivity is being established by SqlClient. I am debugging further to see what is really going wrong in the packaging, or which Assemblies could be packaged incorrectly. |
Under the hood, the exception message contains |
@vijaykota @rajansingh10 PTAL |
I compiled a Linux Release version of System.Net.Security from rc1 branch and dropped it into the DNX runtime folder. It may be that the DNX doesn't have the latest System.Net.Security bits. I haven't checked if any changes were made today to fix this. |
@vijaykota @rajansingh10 System.EntryPointNotFoundException: Unable to find an entry point named 'RsaDestroy' in DLL 'System.Security.Cryptography.Native'. Let me know if I can provide any other information |
@natemcmaster Is there a way to figure out which build is being picked up by the current DNX? |
DNX doesn't do anything special to identify assembly versions. We are pulling the coreclr packages from the dotnet-coreclr-rel myget feed. You could always check the assemblies for assembly info attributes. Otherwise checksum?
|
@bartonjs, can you help with this? The original issue of SSL handshake failure seems to be resolved by updating System.Net.Security.dll |
You could try grabbing the latest built master binary from http://dotnet-ci.cloudapp.net/job/dotnet_corefx_linux_nativecomp_release/lastSuccessfulBuild/artifact/bin/Linux.x64.Release/Native/System.Security.Cryptography.Native.so. |
@bartonjs looks like CI website is down right now. I will try it when I get On Thu, Oct 29, 2015 at 10:38 PM, Jeremy Barton notifications@github.com
-Saurabh |
Replacing the .so file solved the problem for me. |
Appears to be fixed with the latest updates on http://myget.org/gallery/aspnetcirelease. NB: this still requires explicitly adding "System.Net.Security", which is being tracked on https://github.com/dotnet/corefx/issues/4230 |
I still have the same issue!!! On NetCoreApp 1.1 |
|
I still have this issue when running IdentityServer4 using version 2.0.0 of AspnetCore.
|
SqlConnection.Open() fails to establish a connection from Linux (Ubuntu 14.04) or OS X 10.11 to SQL Server.
The error thrown on Linux is
The error thrown on OS X is
Using SqlClient 4.0.0-beta-23428 and dnx-coreclr-1.0.0-rc1-16048. SqlConnection works just fine when using dnx-mono-1.0.0-rc1-16048 instead.
Repro: https://github.com/natemcmaster/test-sqlclient/tree/b2e76a6bcbd3805d8f84696f6d0ec208647d33b2 (change config.json to include connection string).
The text was updated successfully, but these errors were encountered: