Windows Mobile使用WCF服务同步数据库 [英] windows mobile synchronizing databases using WCF service

查看:132
本文介绍了Windows Mobile使用WCF服务同步数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我正在使用wcf同步服务将Windows Mobile中的本地数据库与服务器同步.当我使用客户端和服务器都在同一台计算机上的本地主机时,它工作正常,现在我将wcf托管在服务器上,现在当我尝试同步数据库时,这给了我目标调用异常无法解析远程名称没有已知的此类主机这些例外,任何人都可以帮助我弄清楚以解决我的问题

非常感谢

In my application i am using wcf sync service to sync my local database in windows mobile with server. when i am using my localhost where both client and server are in same computer it works fine, now i hosted my wcf on server, now when i am trying to sync the databses it is giving me Target Invocation Exception The remote name could not be resolved No such host is known these exceptions can any one please help me to figure it out to solve my problem

Many Thanks

推荐答案

两件事之一出了问题.
1)您的服务参考仍指向本地计算机上不存在的服务版本.
-在这种情况下,根据调用服务的方式检查服务引用或连接中的属性,并确保服务路径有效.
2)您在服务器上的服务未正确安装或配置.基本上它不能正常工作.
-如果服务部署不正确,则您必须找出原因,这是您必须要询问的其他问题.
One of two things has gone wrong.
1) Your service reference is still pointing at a non-existent version of the service on your local machine.
- In this case check the properties in your service reference or connection depending on how you are calling the service and make sure that the path to the service is valid.
2) Your service on the server is not installed or configured correctly. Basically it isn''t working correctly.
- If the service isn''t deployed correctly then you''ll have to figure out why and that is a whole other question that you''ll have to ask about.


这篇关于Windows Mobile使用WCF服务同步数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆