The error comes when testing a local Api connection with a HttpClient
System.Net.Http.HttpRequestException HResult=0x80072F0D Message=An error occurred while sending the request. Source=System.Net.Http StackTrace: at System.Net.Http.HttpClientHandler.<SendAsync>d__86.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Net.Http.HttpClient.<FinishSendAsync>d__58.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Net.Http.HttpClient.<GetContentAsync>d__32`1.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at api01.MainPage.<read_API_Data>d__2.MoveNext() in C:\_Daten\Desktop\VS_Projects\UWP\api01\api01\MainPage.xaml.cs:line 37
Inner Exception 1: COMException: Der Text zu diesem Fehlercode wurde nicht gefunden.
Die Zertifizierungsstelle ist ungรผltig oder fehlerhaft.
|
Solution:
On the localserver can not be tested with https: // but only with http: // without SSL Secure Socket Layer
UWP, Asp.Net Core with SSL