locked
Newbe to MS Sync Frame work using modified FileSyncProviderSample project RRS feed

  • Question

  • I have successfully compiled the FileSyncProviderSample. When I run the example using a couple of test directories I get the following error message:-

    Exception from File Sync Provider:
    Microsoft.Synchronization.MetadataStorage.MetadataStorageEngineException: A storage engine operation failed with error code 28558 (HRESULT = 0x80004005, Source IID = {0C733A7A-2A1C-11CE-ADE5-00AA0044773D}, Parameters=(0, 0, 0, z:\AppUpdate\filesync.metadata, , , )).
     ---> System.Runtime.InteropServices.COMException (0x80041288): A storage engine operation failed with error code 28558 (HRESULT = 0x80004005, Source IID = {0C733A7A-2A1C-11CE-ADE5-00AA0044773D}, Parameters=(0, 0, 0, z:\AppUpdate\filesync.metadata, , , )).

       at Microsoft.Synchronization.Files.Interop.FileSyncProviderClass.Initialize(Guid& guidReplicaId, String pcszReplicaRootPath, String pcszMetadataFilePath, String pcszTempDirectoryPath, FILESYNC_INIT_FLAGS dwSyncFlags, IFileSyncScopeFilter pScopeFilter, IFileSyncProviderCallback pCallback, String pcszPathToSaveConflictLoserFiles)
       at Microsoft.Synchronization.Files.FileSyncProvider..ctor(Guid replicaId, String rootDirectoryPath, FileSyncScopeFilter scopeFilter, FileSyncOptions fileSyncOptions, String metadataDirectoryPath, String metadataFileName, String tempDirectoryPath, String pathToSaveConflictLoserFiles)
       --- End of inner exception stack trace ---
       at Microsoft.Synchronization.Files.FileSyncProvider..ctor(Guid replicaId, String rootDirectoryPath, FileSyncScopeFilter scopeFilter, FileSyncOptions fileSyncOptions, String metadataDirectoryPath, String metadataFileName, String tempDirectoryPath, String pathToSaveConflictLoserFiles)
       at Microsoft.Synchronization.Files.FileSyncProvider..ctor(String rootDirectoryPath, FileSyncScopeFilter scopeFilter, FileSyncOptions fileSyncOptions)
       at FileSyncProviderSample.DetectChangesOnFileSystemReplica(String replicaRootPath, FileSyncScopeFilter filter, FileSyncOptions options)
       at FileSyncProviderSample.Main(String[] args)

     

    Which happens when this line of code is executed:-

     SyncFileSystemReplicasOneWay(replica1RootPath, replica2RootPath, null
    , options);

    I need some advice here on how to proceed. I have run some searches for the error code 28558 but the results have not been helpfull.
    on the other hand the search result for 0x80004005 suggests that there is a problem with access rights to ODBC.

    My OS is Vista32 (business), Processor Intel(R) Xeon(R) CPU E5410 @ 2.33GHz, 2327 Mhz, 4 Core(s), 4 Logical Processor(s) with 4GB Ram
    and a 500 GB RAID disk set, MSVS 2008,2010 resident on system.

    Many thanks in anticipation
    Wednesday, November 3, 2010 5:00 PM

All replies

  • Hi,

    The error code (28558) indicates FileSyncProvider is encountered problems while creating the database. Likely you are seeing this issue on the RAID disk set. I assume you have write access to the disk set, so the login you are running the sample can write to the RAID setup. However, there could be some file/directory locking happening on the RAID side, which could be preventing FileSyncProvider from creating the database file.

    Does the issue happens consistently ? If so, can you try syncing two folders -residing on a non-RAID local system drive. If that works, we can narrow down the issue to the RAID drive.

    If RAID side is indeed alone in facing this issue, maybe you can check some configuration settings which could potentially be locking up files (say mirroring settings). Or do you have some other file-watcher programs like file indexer or anti-virus running in the background.

     

    Hope this helps,
    Sameer

    Thursday, November 4, 2010 6:16 PM
  • did you ever get this working?  I am having the same issue - works fine from my local box
    Monday, June 2, 2014 4:53 PM