B
B
BristlyStarling2016-04-27 23:25:30
ASP.NET
BristlyStarling, 2016-04-27 23:25:30

Xamarin & Asp.net web api. How to make a request to the local API in mob. application?

There is a Xamarin Application. When I try to make a request like localhost:1111/api/test , it says that access is denied.
I understood that it is looking for a path in the emulator's localhost, but it's not clear how to call api on the iis server. Abandoning the site is not an option.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kovalsky, 2016-04-28
@dmitryKovalskiy

api on iis server or whatever - it doesn't matter. It either works or it doesn't work. Follow the direct link from your browser. If there is a return, then the application is working and processing requests, if 403, then most likely you have configured iis incorrectly. You are using a port. And I immediately have a question - is this port generally available for requests from outside? And so on track - is your api hosted on iis under a strange port or on iis express? If the second - then pull yourself together and master the publication of the application in a full-fledged local iis.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question