469,613 Members | 2,114 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,613 developers. It's quick & easy.

PDA - Unable to connect to the remote server

Hi folks,

I have built a VS2005 project which includes a C# Web Service, C# Windows
Forms app (which uses the Web Service), and a C# PocketPC app (which also
uses the web service).

When I run the Windows Forms app from the desktop I am able to use the Web
service with no problems. On the other hand, when I run the PocketPC app and
use the Web Service itthrows the following Exception -

System.Net.WebException: Unable to connect to the remote server --->
System.Net.Sockets.SocketException: No connection could be made because the
target machine actively refused it

I have tried specifying the IP address of the Web Service i.e changing
localhost to 192.168.x.xxx, and also tried using my computer name (UDR) still
to no avail.

If I open Internet explorer in the PDA and point the address url to the web
service on my local machine by using http://udr:XXXX/MyService/Service.asmx I
am able to see the Web service and its methods inthe browser, however if I
invoke the web service it says (The page you are looking for cannot be
found). If I put the ip address in the browser address i.e.
http://192.168.x.xxxx:XXXX/MyService/Service.asmx it says - Network Access
Message : The page cannot be displayed.

Any ideas?

Thanks again,
David
Sep 27 '06 #1
3 11283
Just a little update. Still no luck so far. I'm wondering if maybe the Ports
which the Webservice is using is somehow being blocked by the orgainisations
Web Blocker software (WebSense) ? However, wouldnt this surely block all Web
Service calls i.e from both Desktop Clients and cradled PDA's or emulators?
Does VS2005 use a specific port for Web Services? Is it Port 80 i.e. the
standard for port for Web? Or maybe I need to add some sort of permissions to
the WebService calls i.e. Network Credentials of an Administrator?

Any suggestions most welcome,
David
Sep 29 '06 #2
Ok, I'm inching my way closer to solve this. I can start a PocketPC emulator
instance, cradle the emulator, navigateto the url of the Web Service (just
the simple HelloWorld one). When I invoke the Method it returns 'The Method
is not implemented'.

Iam using the address of the webservice correctly i.e.
http://my_machine/MyService/Service.asmx and not
http://localhost/MyService/Service.asmx

So why is this unable to work? This is most odd.

"David++" wrote:
Just a little update. Still no luck so far. I'm wondering if maybe the Ports
which the Webservice is using is somehow being blocked by the orgainisations
Web Blocker software (WebSense) ? However, wouldnt this surely block all Web
Service calls i.e from both Desktop Clients and cradled PDA's or emulators?
Does VS2005 use a specific port for Web Services? Is it Port 80 i.e. the
standard for port for Web? Or maybe I need to add some sort of permissions to
the WebService calls i.e. Network Credentials of an Administrator?

Any suggestions most welcome,
David
Oct 3 '06 #3
Use the url http://192.XXX.XXX.XXX/WebService/Service.asmx
when adding web reference to the pocket pc application.

This will work if the device is connected to the desktop.

"David++" wrote:
Ok, I'm inching my way closer to solve this. I can start a PocketPC emulator
instance, cradle the emulator, navigateto the url of the Web Service (just
the simple HelloWorld one). When I invoke the Method it returns 'The Method
is not implemented'.

Iam using the address of the webservice correctly i.e.
http://my_machine/MyService/Service.asmx and not
http://localhost/MyService/Service.asmx

So why is this unable to work? This is most odd.

"David++" wrote:
Just a little update. Still no luck so far. I'm wondering if maybe the Ports
which the Webservice is using is somehow being blocked by the orgainisations
Web Blocker software (WebSense) ? However, wouldnt this surely block all Web
Service calls i.e from both Desktop Clients and cradled PDA's or emulators?
Does VS2005 use a specific port for Web Services? Is it Port 80 i.e. the
standard for port for Web? Or maybe I need to add some sort of permissions to
the WebService calls i.e. Network Credentials of an Administrator?

Any suggestions most welcome,
David
Oct 13 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

16 posts views Thread by Serdar Kalaycý | last post: by
reply views Thread by =?Utf-8?B?dG9t?= | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.