locked
Unable to connect to local web services after upgrading to macOS Catalina RRS feed

  • Question

  • User209806 posted

    After upgrading to macOS Catalina v. 10.15.4 I can no longer consume local web services (developed with asp.net core) from my xamarin forms iOS application.

    Exception:System.Net.Http.HttpRequestException: An SSL error has occurred and a secure connection to the server cannot be made. ---> Foundation.NSErrorException: Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made.

    This was working fine in macOS Mojave after configuring my project following this guide: https://docs.microsoft.com/en-us/xamarin/cross-platform/deploy-test/connect-to-local-web-services

    Steps to reproduce: * Create a new xamarin forms project * Create a new asp.net core web api project using default template * Start the API and attempt to call the web service: ``` HttpClient httpClient = new HttpClient();

    var response = await httpClient.GetAsync("https://localhost:5001/weatherforecast");` ``` Are others experiencing this issue in Catalina and did the updates to drop TLS 1.0 support in Catalina trigger this error?

    Sunday, April 5, 2020 5:31 PM

Answers

  • User209806 posted

    Solved via info in: https://github.com/MicrosoftDocs/xamarin-docs/issues/2748

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Saturday, May 2, 2020 9:15 PM