客户端和服务器同步示例在SyncProvider分配上引发InvalidCastException [英] Client and Server Synchronization example throws InvalidCastException on SyncProvider assignment

查看:50
本文介绍了客户端和服务器同步示例在SyncProvider分配上引发InvalidCastException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的计算机上运行第一个客户端和服务器同步示例。  当SampleSyncAgent()尝试分配LocalProvider时,ClientSyncProvider会抛出System.InvalidCastException。

I am trying to get the first Client and Server Synchronization example to run on my machine.  When the SampleSyncAgent() tries to assign the LocalProvider, the ClientSyncProvider throws an System.InvalidCastException.

我确实找到了关于它的这篇文章,但它有点旧,所以我有点担心删除我已安装的东西并将拳头安装到这篇文章。 有什么建议吗?

I did find this post about it, but it is a bit old so I am a little concerned about removing what I have installed and installing the fist to this post.  Any advice?

http://social.microsoft.com/Forums/en-US/syncgeneral/thread/f9da6c0a-6d95-438f-a532-44f247a793ed

I我正在运行:


  • Windows 7 SP1
  • SQL Server 2008 R2 SP1
  • VS2010
  • Microsoft.Synchronization - > 1.0.0.0
  • Microsoft.Synchronization.Data - > 2.0.0.0
  • Microsoft.Synchronization.Data.Server - > 2.0.0.0
  • Microsoft.Synchronization.Data.SqlServerCe - > 3.5.0.0

推荐答案

我找到了解决方案,我安装了
Microsoft Sync Framework 2.1软件开发工具包(SDK)
。 现在工作正常。

I found the solution, I installed Microsoft Sync Framework 2.1 Software Development Kit (SDK).  It works fine now.


这篇关于客户端和服务器同步示例在SyncProvider分配上引发InvalidCastException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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