views:

55

answers:

0

I have a Web Service written in C# and published on my local IIS. I try to consume it from a mobile application installed on an emulator.

I added in my mobile application the web reference using the IP of my local machine. The reference is created correctly, I can create proxy objects and use them to call my WS methods.

The emulator is connected to my computer. When I browse in emulator's Internet Explorer my WS using the IP as the servername, I can see all my methods in there, things are fine.

Until yesterday I was able to call the methods of my WS with not problem from the emulator's application. Today, after nothing had changed (except maybe some Windows Updates), I start receiving the error URIFormatException: "Invalid URI: The hostname could not be parsed." If I change the IP to computer's name, I receive another error: "Could not establish connection to network." This is ok, because from the browser of the emulator I cannot access my WS using machine's name...

I receive the error when I call using the proxy object of the WS any method. Right before calling the method, I checked the URL property of my object. It is correct, in the format http://ipadress/WSfolder/WS.asmx.

I am running out of ideas... any help is greatly appreciated.

Thank you