Has anyone figured this out?
error message:
Microsoft.Data.SqlClient.SqlException
Message=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)
Infos:
Microsoft.Data.SqlClient 5.0.1
SQL server 2019 developer
I tried:
1, put "trustServerCertificate=true" in connectionstring and installed certificates in computer, failed
2, put "encrypt = false" in connectionstring and put "android:usesCleartextTraffic ="true" " in AndroidManifest.XML , failed
In Xamarin.Forms using System.Data.SqlClient , sucessfully without any problems.
In Maui windows platform using Microsoft.Data.SqlClient , sucessfully without any problems.
If there are any suggesttions or solutions , please let me know!
Thanks everybody!