-
Notifications
You must be signed in to change notification settings - Fork 1.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
Connecting to SqlServer errors #10111
Comments
|
Hi @mamqua. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Hi @mamqua. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
It's the used MAUI Android SSL implementation issue on some Androids. |
|
Could you post what error do you receive and on which Android version? |
A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 31 - Encryption(ssl/tls) handshake failed) since android 10 version in MAUI TLS1.2 is enabled of course |
@mamqua are you using SQL Server Express 2019? |
no but i tryed with all other version. sqlserver 2016 in the our network, sqlserver 2019 developr locally in my machine |
https://github.com/mamqua/TestMauiSqlServerConnection |
still tryed all but not working. atm i found a video with new tips i'll try follow that way |
@mamqua could you share the video? I am interested as well to see any help with this issue |
Now we are working at sqlserver configuration and updates but when we will finish that job i'll make a video. thx |
As all linked issues show, I don't believe this is something that originates in .NET MAUI unfortunately. Keep tracking the linked issues to get this resolved. Another workaround, as already mentioned, is to not connect to a DB directly and place an API in-between. |
@jfversluis It's an issue with Android TLS/SSL provider which MAUI uses. The errors don't happen on other platforms than MAUI. This means that it is a MAUI problem (edit: Android in .NET problem, right.). Or a leftover Xamarin problem.
But noone in SqlClient can fix .NET Android SSL providers.
|
"It's an issue with Android TLS/SSL provider which MAUI uses" MAUI (This Repo) is a UI Framework for cross platform applications. MAUI (The UI Framework, this Repo) is built on top of MAUI (Or more specifically, .NET For Android), the .NET binding for Android. Your issue is not something that can be fixed in this repo. This issue should probably go to https://github.com/xamarin/xamarin-android or maybe https://github.com/dotnet/runtime, although it could be a root Android issue (Hence why it only happens on Android, and no other platform that MAUI (The UI Framework) supports, since those run on... other platforms... @jonathanpeppers Would you have any ideas of where this should go? Should it stay here? |
Thank you.
Just to add a bit of additional info here, we have old Android applications (running on Android 8.1 and lower) communicating with the same SQL Server with TLS (TLS is always used in TDS (SQL Server communication protocol on port 1433) for login even when Encrypt=false in connection string (which means that the data after SQL Server login process finishes are/aren't encrypted). These apps connect fine. I believe it was as old as Android 4.4 |
Description
I tried with a lot of different solutions but nothing seems working: the android emulator can't connect sqlserver.
Is there some bug that should be fixed? i'm loosing time?
Steps to Reproduce
Link to public reproduction project repository
no public repository
Version with bug
6.0.486 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android from 29
Did you find any workaround?
no
Relevant log output
No response
The text was updated successfully, but these errors were encountered: