Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Xamarin - A problem occurred trying to communicate to server #5583


User avatar
0
joe704la created

I am very new to Xamarin. I am trying to use the android emulator and debug the Droid project. But I am getting an error "A problem occurred while trying to communicate with the server. Call Failed. shutdown GET <a class="postlink" href="https://myapidomain.com/AbpUserConfiguration/GetAll">https://myapidomain.com/AbpUserConfiguration/GetAll</a>. If I browse my actual production API in the browser with this GET request works as expected and spits out the json in the window. Also the Angular app works consuming this API just fine.

Note this is only a test domain for this posts purposes.

Has anyone hit this issue before? I have tried just doing it to my localhost url and also to my production and both cause the same issue.


1 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    Do not start Web.Mvc or Web.Host project via Visual Studio. Default settings of Visual Studio does not allow external connections. For more info you can read External Network Access to Kestrel and IIS Express in ASP.NET Core

    Strongly recommended to read <a class="postlink" href="https://aspnetzero.com/Documents/Development-Guide-Xamarin#debugging-xamarin-app">https://aspnetzero.com/Documents/Develo ... amarin-app</a> and <a class="postlink" href="https://aspnetzero.com/Documents/Developing-Step-By-Step-Xamarin">https://aspnetzero.com/Documents/Develo ... ep-Xamarin</a>

    see #5464@e3453f9c-b92f-41cd-b764-afdbf9884f19