'Error while calling FhirClient in xamarin.Forms with Firely SDK .net
I am getting a following error in while calling FHIR client in Xamarin.Forms. Same line is executed successfully with .net Console application.
Code:
var client = new FhirClient("https://server.fire.ly/r4/");
pat.Id = "7ab8343e-a580-4aed-8c59-54dc975eb02e";
var patientread = client.Read<Patient>($"Patient/{pat.Id}");
Error Line :
<System.Net.Http.HttpRequestException
Message=The SSL connection could not be established, see inner exception.
Source=Hl7.Fhir.Support.Poco
StackTrace:
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore (System.IO.Stream stream, System.Net.Security.SslClientAuthenticationOptions sslOptions, System.Threading.CancellationToken cancellationToken) [0x000f6] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectHelper.cs:176 >
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
