0

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

Nick Williams
  • 1,237
  • 6
  • 19
  • 40
  • What `Binding` are you using? `Smart device` applications can only work with `basicHttpBinding`. – Yoav Aug 08 '13 at 09:31
  • Ah sorry, should have included that. I am using basicHttpBinding – Nick Williams Aug 08 '13 at 09:39
  • However I have just noticed that Internet Explorer on the devices shows the page cannot be displayed - could not find server or DNS error when trying to do anything. Could this affect it?? – Nick Williams Aug 08 '13 at 09:41

2 Answers2

0

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

Yoav
  • 3,326
  • 3
  • 32
  • 73
0

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?

Nick Williams
  • 1,237
  • 6
  • 19
  • 40