On mobile apps, code can not override certificate trust. You can:
- Buy a trusted certificate for the Sqlserver
- On each mobile device install as trusted. See andriod docs for this
- Disable encryption on the Sqlserver.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I use the new stack of development Android C# (not Xamarin). I have SQL Server 2019 and Visual Studio 2022.
During the connection to the server with ADO.NET (Microsoft.Data.SQLClient) I have this error :
A connection was succesfully established with the server, but then an orror occured during the pre-login handshake TCP provider error 35
I also had this error with the stack Console .NET 6, but I solve that with add of Trust Server Certificate=true in the connection string. This solution don't resolve my problem with the Android stack. I think the problème is when client and server are on different device...
I need solution for my students !!!
Thanks !!!
On mobile apps, code can not override certificate trust. You can: