locked
SerializationException occurs when retrieving knowledge RRS feed

  • Question

  • Hello!

    I use SyncFx 2.1 for 4 years. Architecture of my application - 1 central database and 50 clients databases (Central - SQL Server 2008 Standard, clients - SQL Server 2008 R2 Express). Exchange work via WCF-service on server side - all clients to central and from central to all clients. All worked fine all days, but two months ago exchange interrupted and in sync log I found next Exception:  

    ERROR IN GetSyncBatchParameters , w3wp, 57, 03/10/2015 10:19:09:373, Caught exception while getting scope: System.Runtime.Serialization.SerializationException: Deserialization failed. This is typically due to serialization data that is not valid being supplied to the deserializer.
     ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x8004100C
       at Microsoft.Synchronization.CoreInterop.SyncServicesClass.DeserializeSyncKnowledge(Byte[] pbKnowledge, UInt32 cbKnowledge, IReplicaKeyMap pReplicaKeyMap)
       at Microsoft.Synchronization.SyncKnowledge.DeserializeNativeKnowledge(Byte[] data, IReplicaKeyMap replicaKeyMap)
       --- End of inner exception stack trace ---
       at Microsoft.Synchronization.SyncKnowledge.DeserializeNativeKnowledge(Byte[] data, IReplicaKeyMap replicaKeyMap)
       at Microsoft.Synchronization.SyncKnowledge.Deserialize(SyncIdFormatGroup idFormats, Byte[] data)
       at Microsoft.Synchronization.Data.SqlServer.SqlSyncScopeHandler.ReadScope(IDbConnection connection, IDbTransaction transaction, ReadKnowledgeType readType, ReadForgottenKnowledgeType readFKtype)
       at Microsoft.Synchronization.Data.RelationalSyncProvider.GetScope(DbSyncSession DbSyncSession)

    I found only one message here about same problem, but without solution: https://social.microsoft.com/Forums/en-US/syncgeneral/thread/1eb905c0-c7ab-4551-92e8-8b003d678399

    Now, after this error I change [sync].[scope_info].[scope_sync_knowledge] field for problem scope with value from backup database and exchange work again, but after 1, 3 or 10 days Exception return and exchange stop again.

    Please, help me, how I can fix this problem?

    Thanks!


    • Edited by viko_vks Tuesday, March 10, 2015 9:02 PM link added
    Tuesday, March 10, 2015 9:01 PM