Asked by:
Problems running the Microsoft Sync Framework 2.1

Question
-
Hi,
I am executing following code and gets error.
/ execute the synchronization process
SyncOperationStatistics
syncStats = 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
Friday, August 26, 2011 7:18 AM
All replies
-
check that the Sync framework you have installed (32bit or 64 bit) matches the target platform of your application (Project Properties->Build->Platform Target)
- Proposed as answer by dejancg Thursday, January 12, 2012 8:07 AM
Friday, August 26, 2011 7:46 AM -
Yes it's the problem of the target platform & Sync SDK build type. Make sure you have correct (32bit or 64 bit version) of Sync SDK and the related tools. I had the same problem and i was able to resolve it by installing the 32bit version of Sync SDK and binaries on my 64bit OS.
-Thanks TJ
Tuesday, September 25, 2012 5:00 AM