Exception:End of Stream encountered before parsing was completed. RRS feed

  • Question

  • I try to sync beteween sql server 2008 and use sql server 2008 changeTracking feature.
    I use sqlExpressProvider( SQLExpressProviderSample)  as local provider ,and DBProvider as remotePrrovider.
    When I  start the program,it pops up exception."End of Stream encountered before parsing was completed."
    and  this exception was poped up from DbServerSyncProvider.SetAnchorValue method.
    in the method I found something.
            if (rawAnchor == null)
                MemoryStream serializationStream = new MemoryStream(anchor.Anchor);
                object obj2 = new BinaryFormatter().Deserialize(serializationStream);
                parameter.Value = obj2;
    It must be a bug.MemoryStream.position is not reset to 0 before deserialize it.
    • Moved by Liam Cavanagh - MSFTMicrosoft employee Tuesday, December 8, 2009 12:56 AM (From:SyncFx - Feedback)
    • Moved by Max Wang_1983 Thursday, April 21, 2011 10:25 PM forum consolidation (From:SyncFx - Microsoft Sync Framework Database Providers [ReadOnly])
    Monday, December 7, 2009 8:22 AM