File Synchronization Provider Sample

This sample illustrates how to use the file synchronization provider, a fully functioning provider that helps an application to synchronize files and folders in NTFS, FAT, and SMB file systems.

C# (35.8 KB)
 
 
 
 
 
3.5 Star
(4)
5,469 times
Add to favorites
5/13/2011
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • How to fix Microsoft.Synchronization.Files could not be found
    1 Posts | Last post September 02, 2015
    • I get 7 of these warnings
      
      Warning	1	The referenced component 'Microsoft.Synchronization.Files' could not be found. 	MyTestProgram
      
      Warning	2	The referenced component 'Microsoft.Synchronization.MetadataStorage' could not be found. 	MySimpleSyncFileProvider
      
      Warning	3	The referenced component 'Microsoft.Synchronization.SimpleProviders' could not be found. 	MySimpleSyncFileProvider
      
      Warning	4	The referenced component 'Microsoft.Synchronization' could not be found. 	MySimpleSyncFileProvider
      
      Warning	5	The referenced component 'Microsoft.Synchronization.SimpleProviders' could not be found. 	MyTestProgram
      
      Warning	6	The referenced component 'Microsoft.Synchronization.Files' could not be found. 	MySimpleSyncFileProvider
      
      Warning	7	The referenced component 'Microsoft.Synchronization' could not be found. 	MyTestProgram
      
  • How to Sync the folder if it is hosted in azure
    1 Posts | Last post April 16, 2015
    • I am hosting my mvc4 website in azure cloud and i want to sync my local files to the azure using this framework.Code is running fine in Local offline version but i am not able to find the solution to sync azure files and folder
  • Can the code do file merge beyond the 4 types listed?
    2 Posts | Last post May 16, 2013
    • It looks like the file sync can only do one of 4 types:
      create, delete,update (same as overwrite), rename, can it merge files if the files are independently modified by two users? or can you point me to the right object to use to do file comparison using Microsoft RDC and merge?
    • Neither the Sync Framework nor RDC (Remote Differential Compression) support merging inherently.  Both Sync Framework and RDC assume that one file is the "master", and the other remote copies are updated to match the master.  A "merge" scenario would imply sending bi-directional updates (for instance, pull down master changes, merge locally, then push the "new master" up).
      
      I'm not aware of any framework that can merge files a priori - you'd have to write a very special custom handler for it.
  • Example will not compile
    2 Posts | Last post March 20, 2013
    • Microsoft.Synchronization.Files.FileSyncProvider does not contain a constructor that takes 3 arguments.
      
      What needs to be done to get this to work.
      
      
    • You are using Sync Framework 1.0. Upgrade to 2.0.