-
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
Android: SQLConnection.open Android: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught) #3522
Comments
Experiencing the same issue as @thevirtualdj. |
Similar issue here but with
I can also see this in the logs before the exception:
|
Any progress on this issue? Using System.Data.SqlClient version 4.8.3 |
MAUI preview12 same error.
V V pet., 11. feb. 2022 ob 11:42 je oseba thevirtualdj <
***@***.***> napisala:
… Any progress on this issue? Using System.Data.SqlClient version 4.8.3
—
Reply to this email directly, view it on GitHub
<#3522 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJOAT7CYOYIGQTHAR2JBOW3U2TRXPANCNFSM5IS74Q7A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Same..... |
I have the same problem and found out:
Maybe someone find this information useful. |
Please read the TLS Docs for Android (they apply to MAUI too). |
OK, but where to set TLS 1.2 in android options (it does not exists in VS Preview 17.1) And not only one for now.. Please advise. https://docs.microsoft.com/en-us/answers/questions/658469/use-httpclient-in-maui.html |
You will likely need to also consult the Android Network Security Config Docs if you are trying to create an exception to use a non-TLS connection to a server from within your app. |
Description
On Windows System.Data.SQLClient (4.8.3) connection open works fine.
Same code on android throws an error:
{System.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught)
---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception.
---> Interop+AndroidCrypto+SslException: Exception of type 'Interop+AndroidCrypto+SslException' was thrown.
--- End of inner exception stack trace ---
Any ideas?
Like the sql server connection is forced to use SSL but on server side it is not (on windows works just fine).
Steps to Reproduce
Here is the code:
Version with bug
Preview 10 (current)
Last version that worked well
Preview 10 (current)
Affected platforms
Android
Affected platform versions
Android 10
Did you find any workaround?
No
Relevant log output
The text was updated successfully, but these errors were encountered: