I'm using Xamarin.Forms application with Azure Mobile App as backend service. How can I debug with local instance of the service?
Tried following, but returns error :
public const string applicationURL = @"http://192.168.0.4:59996/";
public const string gatewayURL = @"";
public const string applicationKey = @"Overridden by portal settings";
public static MobileServiceClient client = new MobileServiceClient (
Constants.applicationURL, Constants.gatewayURL,
Constants.applicationKey);
Error thrown is :
System.Net.WebException: Error: ConnectFailure (Connection refused) ---> System.Net.Sockets.SocketException: Connection refused
Following are the keys in Mobile App service:
<add key="MS_MobileServiceName" value="XXXMobileApp" />
<add key="MS_ApplicationKey" value="Overridden by portal settings" />
<add key="MS_MasterKey" value="Overridden by portal settings" />
<add key="MS_SigningKey" value="Overridden by portal settings" />
<add key="EMA_MicroserviceID" value="XXXMobileApp" />
<add key="EMA_RuntimeUrl" value="https://groupa2edxxx.azurewebsites.net" />
<add key="EMA_Secret" value="Overridden by portal settings" />
How should I define the client in Xamarin?
PS: The local host service is running in debug mode.