Error on initialization of FileSyncProvider RRS feed

  • Question

  • Hi,


    I am working with Sync framework sample and getting one error. On line "provider = New FileSyncProvider(replicaId, syncParticipant)" it gives following error


    System.IO.FileNotFoundException occurred
      Message="The FileSyncProvider must be initialized to perform this operation."
           at Microsoft.Synchronization.Files.Interop.FileSyncProviderClass.Initialize(Guid& guidReplicaId, String pcszReplicaRootPath, String pcszMetadataFilePath, String pcszTempDirectoryPath, FILESYNC_INIT_FLAGS dwSyncFlags, IFileSyncScopeFilter pScopeFilter, IFileSyncProviderCallback pCallback)   


    at Microsoft.Synchronization.Files.FileSyncProvider..ctor(SyncId replicaId, String rootDirectoryPath, FileSyncScopeFilter scopeFilter, FileSyncOptions fileSyncOptions, String metadataDirectoryPath, String metadataFileName, String tempDirectoryPath)   


    at Microsoft.Synchronization.Files.FileSyncProvider..ctor(SyncId replicaId, String rootDirectoryPath)   


    at FileSync.SyncIt.DetectChangesOnFileSystemReplica(SyncId replicaId, String syncParticipants) in C:\Sync\FileSync\SyncIt.vb:line 149

    I am working on Windows Vista Enterprize. I have installed SQL Compact edition 3.5 and "CTP1SyncServicesADO_x86.msi" (as I use intel core machine).


    I verified that "filesync.id" file was generated on rootDirectoryPath, while generating replicaId.


    I have tried many examples from net with almost similar code, but every code stops on initialization of FileSyncProvider.


    I don't understand what file it is looking for and not finding it.


    Has anyone faced similar issue or have any idea why this is happening?




    • Moved by Max Wang_1983 Thursday, April 21, 2011 10:17 PM forum consolidation (From:SyncFx - Technical Discussion [ReadOnly])
    Wednesday, February 6, 2008 6:55 PM



    Reinstalled SQL Compact edition 3.5 and not it is working.
    Wednesday, February 6, 2008 10:16 PM