Sync Framework v2.0 'ChangeBatch' class serialization issue RRS feed

  • Question

  • Hi,

    I have migrated my application from using Sync Framework v1.0 to v2.0. However, whenever I my host this as a separate website i get the following exception:

    To be XML serializable, types which inherit from IEnumerable must have an implementation of Add(System.Object) at all levels of their inheritance hierarchy. Microsoft.Synchronization.ChangeBatch does not implement Add(System.Object).
    Is there anything specific i need to do to serialize this class? Is there anything i am missing?

    Just for your information - i have integrated the WebSharing app demo sample in my code and hosted it as a separate website rather than using WCFServiceHost. I am using Sync Framework RTM v2.0.

    Appreciate if anyone can give their inputs.

    • Moved by Max Wang_1983 Thursday, April 21, 2011 10:36 PM forum consolidation (From:SyncFx - Microsoft Sync Framework Database Providers [ReadOnly])
    Monday, November 16, 2009 12:47 PM