I downloaded sample, went through tutoral for "Consume an ASP.NET Web Service (ASMX)" in Xamarin forms at https://docs.microsoft.com/en-us/xamarin/xamarin-forms/data-cloud/web-services/asmx. If I run from visual studio the web service runs in browser all good. If I make the android app the startup project it runs but does not get the todo items from service. I have made fire wall rule, modified the Consume an ASP.NET Web Service (ASMX), and creating a self-signed development certificate on your machine.
What I am stuck on is how to configure your project to use the appropriate HttpClient network stack for your debug build. For more information, see Configure your project.
where does the following code go? And do i change my port to 49178 in code below?
//Device class public static string BaseAddress = Device.RuntimePlatform == Device.Android ? "https://10.0.2.2:5001" : "https://localhost:5001"; public static string TodoItemsUrl = $"{BaseAddress}/api/todoitems/";
5001
also you have to use emulator because obviosuly10.0.2.2
norlocalhost
will not work on real device – Selvin