简体   繁体   English

Windows Portable 6.5的WCF客户端

[英]WCF Client from windows handheld 6.5

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. 我创建了WCF服务,该服务当前托管在控制台应用程序中,用于测试。

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. 我使用svcutil.exe的精简框架版本创建了一个客户端,并创建了在移动设备上运行的Windows Handheld 6.5应用程序。

However when sending attempting to call the WCF service I get the error: 但是,在发送尝试调用WCF服务的尝试时,出现错误消息:

There was no endpoint listening at {"URL"} that could accept the message... 没有端点在{“ URL”}处监听,可以接受该消息...

I have created another client as a console application on a PC using svcutil.exe and this works fine. 我已经使用svcutil.exe在PC上创建了另一个客户端作为控制台应用程序,并且工作正常。

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. 我可以从移动设备ping服务器。

Thanks 谢谢

To connect a Smart-Device application to a WCF service you should use the NetCFSvcUtil.exe tool. 要将Smart-Device应用程序连接到WCF service ,应使用NetCFSvcUtil.exe工具。
You can download it from here . 您可以从这里下载。

The problem appears to be some sort of DNS related issue. 该问题似乎是与DNS相关的某种问题。

While the WiFi connection was fine attempting to visit any website returned a Dns error. WiFi连接正常时,尝试访问任何网站均返回Dns错误。

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. 再次打开和关闭设备似乎可以解决问题,因为重新启动应用程序和Internet Explorer后,它们都可以正常工作。

Has any else ever experienced this before? 以前有没有其他经历?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows Mobile 6.5与Windows Embedded Handheld 6.5 - 有什么区别? - Windows Mobile 6.5 vs Windows Embedded Handheld 6.5 - what's the difference? WIP6.5仿真器和Windows手持设备6.5(Motorola MC65)上未显示SIP按钮 - SIP buttons not showing on WM6.5 emulator and Windows handheld 6.5 (Motorola MC65) Windows 2000中的WCF客户端 - WCF Client From Windows 2000 是否可以编写在Windows Mobile 6.5和Windows Embedded 8.1 / 10 Handheld上运行的应用程序? - Is it possible to write an application that runs on Windows Mobile 6.5 as well as Windows Embedded 8.1/10 Handheld? Windows Service托管的WCF:从Windows服务回调到客户端 - Windows Service hosted WCF: Callback to client from Windows service 如何从Windows Phone 6.5调用Web服务? - How to call a webservice from windows phone 6.5? 从Windows Mobile 6.5访问网络共享 - access network share from windows mobile 6.5 我可以从WCF中打开客户端的Windows资源管理器吗? - Can I open client's Windows Explorer from WCF? 身份验证失败-客户端到WCF到WCF Windows身份验证 - Authentication Failed - Client to WCF to WCF Windows Authentication WCF客户端缓存Windows身份验证 - WCF client caching windows authentication
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM