Unable to connect to the remote server error

S

Sreedhar Koganti

Hi,

I created a "Hello Wrold", web service and then I tried to
consume in "Pocket PC 2003" simulator.

When I ran I got an error as below
***********************************
"A managed WebException occurecd at Applicaiton::Run+0x1a

Unable to connect to the remote server

Application::Run+0x1a
Form1::Main+0xd

OK to terminate
*********************************

Can any one throw some light on this!

My WS virtual site permissions are ananyumus.

This WS and Pocket PC applicaions are developed in Visual
Studio 2003 and on my local machine.

Sreedhar
http://www.w3coder.com
weblogs http://weblogs.asp.net/skoganti
 
K

Ken Wilson

This could be due to a few reasons. Unfortunately, the error messages
aren't very descriptive. You can get this error if you've made certain
changes to your web service and haven't performed the Update Web Reference
(right click on the web reference in your SDE project). I've also gotten
this error for no particular reason when running in debug on an actual
device, then resetting the device usually works. I've had such inconsistent
performance when running on the emulator that I no longer use the emulator.
You can also get this message if you haven't configured the web service
properly. I'll assume you did, but you might check the web service virtual
directory in IIS Manager (the one with your service1.asmx file in it) and
make sure you have execute permissions. Lastly, you might try deleting the
web service reference in your SDE project and creating a new reference to
the web service. Oh... one other... if you're using http://localhost/... as
your path to your web service, try using your machine name instead of
"localhost".

Hope this helps.
 
M

Microsoft

I have the same problem. I think that it this problem is related with the
Security/Permission because I can access the same WebService via a standard
windows application or web application. The error comes up only if I access
the web service via a PPC application.

Thanks,
Alessandro Cavalieri
 

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