Reputation: 305
I have a phonegapp App running on an Android emulator and I would like to access my ASP.NET MVC 4 server in order to make a log in request.
The problem is that my Emulator can't access my IIS application. I tried this :
Despite of that, i've got a "400 bad request error invalid username"...
Can anyone help me ?
Upvotes: 1
Views: 1125
Reputation: 233
I had the same problem. the port number in url isn't recognized by android emulator. so wehn I open visual studio project settings, I changed the IIS settings to have a virtual directory under the local host (for example "localhost/testPorject") instead of "localhost:PortNumer". this worked and the emulator recognized it.
Upvotes: 1