locked
FileSynchronization over WCF RRS feed

  • Question

  • I am trying to implement file synchronization via WCF...  So far, I have not found any way to implement it using the FileSynchronization Provider.  I have looked at all available examples for version 2.0 of the synchronization framework, but due to serialization issues, nothing seems to come together for an acceptable solution.  Is there any guidance that can be offered towards a possible approach?

    Respectfully,
    Matthew W. Sanders
    Wednesday, March 17, 2010 5:56 PM

Answers

  • Sid,

    I have been able to sort out the issue.  I am using FileSyncProvider on one end and a derived KnowledgeSyncProvider to implement RCA pattern on the other.  Thank you for your time and concern.

    Respectfully,
    Matthew W. Sanders
    Thursday, March 18, 2010 12:26 AM

All replies

  • Hi Matthew, there is an old sample here:

    http://bryantlikes.com/archive/2008/01/03/remote-file-sync-using-wcf-and-msf.aspx

    There is also a sample that sync the file sync provider with a simple provider:

    http://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=sync&ReleaseId=3592

    Hope looking at these will resolve your serialization issues.

    There is a Sync101 sample as well that uses WCF:

    http://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=sync&ReleaseId=3421

    Wednesday, March 17, 2010 6:26 PM
  • Yes...

    Those are all examples that I have examined.  Unfortunately, the old sample is broken when it comes to implementation in the 2.0 framework.  The simple provider runs into problems with serialization due to the FullEnumerationSimpleSyncProvider, and the Sync101 sample uses a KnowledgeSyncProvider....  I am wondering if anyone knows whether this can even be implemented using the FileSyncProvider on one end using a RCA pattern....

    Respectfully,
    Matthew W. Sanders
    Wednesday, March 17, 2010 6:45 PM
  • What is the specific serialization problem you are facing? Bryant's sample should be able to run after changing the references to MSF 2.0, but if you can share your approach and what issues you are facing, I can have someone take a look and see what you can do to fix it. Are you trying to use File Sync provider on both ends?
    Wednesday, March 17, 2010 8:59 PM
  • Sid,

    I have been able to sort out the issue.  I am using FileSyncProvider on one end and a derived KnowledgeSyncProvider to implement RCA pattern on the other.  Thank you for your time and concern.

    Respectfully,
    Matthew W. Sanders
    Thursday, March 18, 2010 12:26 AM
  • Any chance you could share an example for me? Thanks!
    Tuesday, June 29, 2010 2:03 PM
  • Do you have a working example you can share with me for file sync over wcf? I have had a terrible time with it. Thanks...
    Wednesday, October 13, 2010 6:30 PM