WebService and Emulator

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
 
D

Darren Shaffer

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
 
G

Guest

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
 
A

Alex Feinman [MVP]

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
 
G

Guest

Thanks, the problem is that i have no static ip address...

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

Pan Kessel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top