none
Problems running the Microsoft Sync Framework 2.1

    Întrebare

  • 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

     

     

     

    26 august 2011 07:18

Toate mesajele

  • check that the Sync framework you have installed (32bit or 64 bit) matches the target platform of your application (Project Properties->Build->Platform Target)
    • Propus ca răspuns de dejancg 12 ianuarie 2012 08:07
    26 august 2011 07:46
  • 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

    25 septembrie 2012 05:00