mardi 8 novembre 2016

Flurl Local Host Connection Refused

I have set up Flurl to run within my Xamarin PCL, and I'm calling off to a Web Api I have running in an MVC application.

It seems Flurl can hit my deployed API no problem, but I'm unable to test changes locally for some reason.

Here's what I'm doing:

var data = await "http://localhost:60257/api/gigapi".GetJsonAsync<List<Gig>>();

I've tried a simple GetAsync() too but again, no avail.

Any help would be appreciated.

EDIT:

Just for a bit more info, the project is a redevelopment of an Ionic mobile app. I've run the ionic app locally and that's able to hit my local web api with no issues, so it's not a firewall issue or anything like that - It's probably something I'm doing wrong in Flurl.




Aucun commentaire:

Enregistrer un commentaire