WCF Client from windows handheld 6.5

733 views Asked by At

I am experiencing a problem which I cannot seem to solve.

I have created a WCF service which is currently hosted in a console application for testing purposes.

I created a client using the compact framework version of svcutil.exe and created a windows handheld 6.5 application which is running on a mobile device.

However when sending attempting to call the WCF service I get the error:

There was no endpoint listening at {"URL"} that could accept the message...

I have created another client as a console application on a PC using svcutil.exe and this works fine.

Are there any reasons why the mobile device cannot connect to the service and the console client can??

I can ping the server from the mobile device.

Thanks

2

There are 2 answers

0
Nick Williams On BEST ANSWER

The problem appears to be some sort of DNS related issue.

While the WiFi connection was fine attempting to visit any website returned a Dns error.

Turning the device off and on again seemed to solve the problem as after powering back up both the application and internet explorer were working fine.

Has any else ever experienced this before?

0
Yoav On

To connect a Smart-Device application to a WCF service you should use the NetCFSvcUtil.exe tool.
You can download it from here.