Hey Guys,
So I am working with webreferences and my client told me to switch on his sandbox so he sent me the new link. I then deleted my old web ref and made a new one. At first, the link was broken because, I had to add a line on my hosts file. When I added it, the link was working, so I could create my reference properly. Now the problem, is that I always get this error whenever I call a method of the new reference :
{System.Net.WebException: Error: NameResolutionFailure at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) [0x00045] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Net/HttpWebRequest.cs:838 at System.Net.HttpWebRequest.GetRequestStream () [0x00057] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Net/HttpWebRequest.cs:854 at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke (System.String method_name, System.Object[] parameters) [0x00069] in /Developer/MonoTouch/Source/mono/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHttpClientProtocol.cs:367 } System.Net.WebException.
He switched the old web service (that was working) on the new link that he gave me so I figured out that it should work. But even with the same DB, it doesn't work. I wonder if it has something to do with the hosts file, do I have to add it somewhere in Xamarin or something. I tried to restart my Xamarin, but it was unsucessful.
So I really don't know why I get this error because Xamarin can see that the link is good when I add a new web reference and when I type it out in my browser, it works also.
So If you have any idea, I would really appreciate if you could share it with me because, I'm out of solutions now.
Thanks a lot for your time and have a great day,
Claude