KnowledgeSyncOrchestrator

KnowledgeSyncOrchestrator

本文介绍了运行Microsoft Sync Framework 2.1时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我正在执行以下代码并收到错误。 /执行同步过程   SyncOperationStatistics 的 syncStats = syncOrc hestrator.Synchronize(); 错误堆栈 ========= Microsoft.Synchronization.SyncException未处理   (从HRESULT异常:0x80040154的(REGDB_E_CLASSNOTREG))80040154未注册的类: $ B消息=检索COM类工厂具有CLSID部件{EC413D66-6221-4EBB-AC55-4900FB321011}失败,由于下面的错误$ b 来源= Microsoft.Synchronization   StackTrace:       在Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWaySyncHelper(SyncIdFormatGroup sourceIdFormats,SyncIdFormatGroup destinationIdFormats,KnowledgeSyncProviderConfiguration destinationConfiguration,SyncCallbacks DestinationCallbacks,ISyncProvider sourceProxy,ISyncProvider destinationProxy,ChangeDataAdapter callbackChangeDataAdapter,SyncDataConverter conflictDataConverter,Int32& changesApplied,Int32& changesFailed)       在Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWayKnowledgeSync(SyncDataConverter sourceConverter,SyncDataConverter destinationConverter,SyncProvider都sourceProvider,SyncProvider都destinationProvider,的Int32&安培; changesApplied,的Int32&安培; changesFailed)     &NBSP ; 在Microsoft.Synchronization.KnowledgeSyncOrchestrator.Synchronize()       在Microsoft.Synchronization.SyncOrchestrator.Synchronize()       在ExecuteCompactSync.Program.Main(字串[] args)在C:\msteg\Sync Framework\Application\SyncSQLServerAndSQLCompact\ExecuteCompactSync\Program.cs:线47  &NBSP ;    在System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly,String [] args)       在System.AppDomain.ExecuteAssembly(String assemblyFile,Evidence assemblySecurity,String [] args)       在Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()        at System.Threading.ThreadHelper.ThreadStart_Context(Object state)        at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean ignoreSyncCtx)       在System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback回调,对象状态)       在System.Threading.ThreadHelper.ThreadStart()   InnerException:System.Runtime.InteropServices.COMException        (从HRESULT异常:0x80040154的(REGDB_E_CLASSNOTREG))80040154未注册的类: $ B消息=检索COM类工厂具有CLSID部件{EC413D66-6221-4EBB-AC55-4900FB321011}失败,由于下面的错误$ b      来源= Microsoft.Synchronization        ErrorCode = -2147221164        StackTrace:            在Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWaySyncHelper(SyncIdFormatGroup sourceIdFormats,SyncIdFormatGroup destinationIdFormats,KnowledgeSyncProviderConfiguration destinationConfiguration, SyncCallbacks DestinationCallbacks,ISyncProvider sourceProxy,ISyncProvider destinationProxy,ChangeDataAdapter callbackChangeDataAdapter,SyncDataConverter conflictDataConverter,的Int32&安培; changesApplied,的Int32&安培; changesFailed)        InnerException: 任何帮助。 谢谢, Jaydeep       解决方案 检查您安装的Sync框架(32位或64位)是否与您的应用程序的目标平台匹配(Project Properties-> Build-> Platform Target) Hi,I am executing following code and gets error./ execute the synchronization process SyncOperationStatisticssyncStats = syncOrchestrator.Synchronize();Error Stack=========Microsoft.Synchronization.SyncException was unhandled  Message=Retrieving the COM class factory for component with CLSID {EC413D66-6221-4EBB-AC55-4900FB321011} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).  Source=Microsoft.Synchronization  StackTrace:       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWaySyncHelper(SyncIdFormatGroup sourceIdFormats, SyncIdFormatGroup destinationIdFormats, KnowledgeSyncProviderConfiguration destinationConfiguration, SyncCallbacks DestinationCallbacks, ISyncProvider sourceProxy, ISyncProvider destinationProxy, ChangeDataAdapter callbackChangeDataAdapter, SyncDataConverter conflictDataConverter, Int32& changesApplied, Int32& changesFailed)       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWayKnowledgeSync(SyncDataConverter sourceConverter, SyncDataConverter destinationConverter, SyncProvider sourceProvider, SyncProvider destinationProvider, Int32& changesApplied, Int32& changesFailed)       at Microsoft.Synchronization.KnowledgeSyncOrchestrator.Synchronize()       at Microsoft.Synchronization.SyncOrchestrator.Synchronize()       at ExecuteCompactSync.Program.Main(String[] args) in C:\msteg\Sync Framework\Application\SyncSQLServerAndSQLCompact\ExecuteCompactSync\Program.cs:line 47       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)       at System.Threading.ThreadHelper.ThreadStart()  InnerException: System.Runtime.InteropServices.COMException       Message=Retrieving the COM class factory for component with CLSID {EC413D66-6221-4EBB-AC55-4900FB321011} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).       Source=Microsoft.Synchronization       ErrorCode=-2147221164       StackTrace:            at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWaySyncHelper(SyncIdFormatGroup sourceIdFormats, SyncIdFormatGroup destinationIdFormats, KnowledgeSyncProviderConfiguration destinationConfiguration, SyncCallbacks DestinationCallbacks, ISyncProvider sourceProxy, ISyncProvider destinationProxy, ChangeDataAdapter callbackChangeDataAdapter, SyncDataConverter conflictDataConverter, Int32& changesApplied, Int32& changesFailed)       InnerException:Any help apprecaited.Thanks,Jaydeep    解决方案 check that the Sync framework you have installed (32bit or 64 bit) matches the target platform of your application (Project Properties->Build->Platform Target) 这篇关于运行Microsoft Sync Framework 2.1时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-24 15:25