缺少程序集引用SqlCeSyncProvider c# [英] Missing assembly reference SqlCeSyncProvider c#

查看:158
本文介绍了缺少程序集引用SqlCeSyncProvider c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在同步代码中使用

I am trying to use

SqlCeSyncProvider

,但是它提供了错误

`SqlCeSyncProvider dos not exist, Are you missing assembly reference`

。在msdn上,

`SqlCeSyncProvider`

`Microsoft.Synchronization.Data.SqlServerCe`

中可用程序集 MSDN 我试过`使用Microsoft.Synchronization.Data.SqlServerCe;`但它没有成功结束。



我试过2.0.0.0,3.1.0.0和3.5.0.0版本的程序集,但不明白可能是什么问题。我也尝试使用

assembly MSDN i tried `using Microsoft.Synchronization.Data.SqlServerCe;` but it ended with no sucess.

I tried 2.0.0.0 ,3.1.0.0 and 3.5.0.0 version of assembly but don't understand what can be the problem. I also tried using

`using Microsoft.Synchronization.Data.SqlServerCe.SqlCeSyncProvider;`

但是它给出了错误



but it gives error

The type or namespace name 'SqlCeSyncProvider' does not exist in the namespace 'Microsoft.Synchronization.Data.SqlServerCe' (are you missing an assembly reference?)



是否意味着微软doc是错误的?


does it means microsoft doc is wrong?

推荐答案

请参考这:安装,再分发和版本兼容性(Sync Framework 2.1) [ ^ ]并且:如何:配置和执行协作同步(SQL Server) [< a href =http://msdn.microsoft.com/en-us/library/dd918848%28v=sql.105%29.aspxtarget =_ blanktitle =New Window> ^ ] 。最后,请看一下: SqlCeSyncProvider类 [ ^ ]。
Please refer this: Installation, Redistribution, and Version Compatibility (Sync Framework 2.1)[^] and this: How to: Configure and Execute Collaborative Synchronization (SQL Server)[^]. Finally, have a look here: SqlCeSyncProvider Class[^].


这篇关于缺少程序集引用SqlCeSyncProvider c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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