Error: TrustFailure (Authentication failed

Jassim Al Rahma 1,616 Reputation points
2021-11-18T12:52:47.94+00:00

Hi,

Why I am getting this error:

{System.Net.WebException: Error: TrustFailure (Authentication failed, see inner exception.) ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. ---> Mono.Btls.MonoBtlsException: Ssl error:1000007d:SSL routine…}

for this line:

XElement root = XElement.Load("https://www.domain.com/myapp.xml");

It works perfectly on iOS but crashing on Android

Kindly help..

Thanks,
Jassim

Developer technologies | .NET | Xamarin
Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Ken Tucker 5,861 Reputation points
    2021-11-20T11:41:21.64+00:00

    I would check your ssl/tls options in your project properties --> android options --> advanced. Maybe you do not have the right tls option selected.

    151163-image.png


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.