【发布时间】:2012-09-12 07:58:43
【问题描述】:
我从同步框架网页上下载了一个例子,展示了sql ce和sql server之间通过wcf服务的同步过程。
我想在台式机上创建访问 wcf 服务的 windows 移动应用程序。 有没有可能这样的场景?
- 是否有专门用于紧凑框架的 Microsoft.Services 程序集?
这是我的wcf合约界面:
public interface IRelationalSyncContract
{
void Initialize(string scopeName, string hostName);
void BeginSession(SyncProviderPosition position);
SyncBatchParameters GetKnowledge();
GetChangesParameters GetChanges(uint batchSize, SyncKnowledge destinationKnowledge);
SyncSessionStatistics ApplyChanges(ConflictResolutionPolicy resolutionPolicy, ChangeBatch sourceChanges, object changeData);
bool HasUploadedBatchFile(string batchFileid, string remotePeerId);
void UploadBatchFile(string batchFileid, byte[] batchFile, string remotePeerId);
byte[] DownloadBatchFile(string batchFileId);
void EndSession();
void Cleanup();
}
我收到以下错误: 'System.Xml.Serialization.IXmlSerializable' 类型是在未引用的程序集中定义的。
如何解决这个问题?
【问题讨论】:
标签: synchronization compact-framework microsoft-sync-framework