Windows Mobile 同步错误 [英] Windows Mobile Synchronization Error

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

问题描述

我是 Windows Mobile 开发的新手,一直在研究在运行 WM6 的 PDA 和 SQL Server 2005 数据库之间同步数据的方法.经过一番研究,我决定使用 Windows 同步服务.

I am new to Windows Mobile development and have been investigating methods to synchronize data between PDA's running WM6 and a SQL Server 2005 Database. After some research I decided to go with Windows Synchronization Services.

我从查看示例开始:SyncServicesForDevicesSample

I started by looking at the sample: SyncServicesForDevicesSample

我下载并安装了自述文件中列出的所有必备软件,包括:

I downloaded and installed all the prerequisite software outlined in the readme including:

  • Visual Studio 2008 专业版 SP1
  • SQL Server Compact 3.5 Service Pack 1 (SP1)
  • ADO.NET 1.0(设备)的同步服务

当我加载示例时,我注意到GBADeviceClient"项目中的 System.Data.SqlServerCe.dll 引用丢失,因此我将其链接到 C:\Program Files\Microsoft SQL Server Compact Edition\v3 中的版本.5\Devices 是 3.5.5386.0.

When I load the sample I noted that the System.Data.SqlServerCe.dll reference in the "GBADeviceClient" project was missing, so I linked it to the version in C:\Program Files\Microsoft SQL Server Compact Edition\v3.5\Devices which was 3.5.5386.0.

当我运行项目时,我收到以下错误消息:

When I run the project I get the following error message:

文件或程序集名称'System.Data.SqlServerCe,版本=3.5.1.0,文化=中性,PublicKeyToken=3BE235DF1C8D2AD3',或它的依赖项之一,不是找到了.

File or assembly name 'System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=3BE235DF1C8D2AD3', or one of its dependencies, was not found.

当我查看模拟器(删除程序)时,我安装了以下软件:

When I look on the emulator (Remove Programs) I have the following software installed:

  • ADO.NET 1.0 同步服务
  • Microsoft .Net CF 3.5 EN-String R...
  • SQLServerCompact 3.5 工具 EN
  • SQLServerCompact 3.5 Repl
  • SQLServerCompact 3.5 核心微软
  • .NET CF 3.5

因此在 PDA 上调用了错误的文件版本...我如何引用正确"的版本?

So the wrong file version is being called on the PDA...how do I reference the 'correct' version?

或者,是否有更简单的方法来同步 SQL Server 2005 数据库中的数据子集(大约 10 个表,其中大部分只是查找列表)?

Alternatively, is there an easier way to synchronise a subset of data (about 10 tables, where most of those are lookup lists only) from a SQL Server 2005 database?

提前致谢.

推荐答案

再次检查您是否安装了适用于 Windows Mobile 的 SQL Server Compact 3.5 SP1 (在此处下载).我的dll版本是3.5.5692.0

Check again if you have the SQL Server Compact 3.5 SP1 for Windows Mobile installed (download here). My dll has the version 3.5.5692.0

安装 SP1 后,您最好从模拟器中卸载以前的版本并重新部署您的应用程序以安装最新版本.

After installing the SP1, you better uninstall the previous version from the emulator and deploy your application again to install the latest version.

这篇关于Windows Mobile 同步错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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