WebService and Emulator

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a problem with the Windows CE Emulator. I try to access a web method
returning just a simple string. I always get a WebException with the
following error message:
"The connection with the remote server could not be established"
I changed the url from \\localhost\\... to \\hostname\\..., so this is not
the problem.

Thank you,
Pan Kessel
 
Claus,

Try using an explicit IP address to reach your web service instead of
\\localhost (implying that you are calling a web service running on the
same PC that your emulator is running on).

-Darren
 
Thanks for the fast help..
as i said in my first post (maybe it was not clear due to my unclear
english, sorry about that) i changed the old url(http:\\localhost\....) to a
correct one (http:\\MyComputerName\....), this should have the same
consequences as setting the correct ip.

Thanks,

Pan
 
No, it won't. It would if the name resolution worked the way you expect it
to. Unfortunately one of two cases takes place. Either you have an isolated
environment and there is no DNS server that would recognize <hostname> at
all, or you have a domain environment and you need to specify
hostname.domain.com, since there is no default DNS domain on PPC.

Using IP address allows to get around the problem in both scenarios. Besides
the suggestion was of a kind that is realy easy to test, not really worth
arguing
 
Thanks, the problem is that i have no static ip address...

But with hostname.domain everything runs perfectly. Thank you....

Pan Kessel
 
Back
Top