locked
Sync framework v2.0 Error at SqlSyncScopeProvisioning.Apply() RRS feed

  • Question

  • Hi, Im following the sync example in here: http://msdn.microsoft.com/en-us/library/dd918848(SQL.105).aspx

    When I run it, I get the following error: Could not load file or assembly 'Microsoft.Synchronization.Data.SqlServer.XmlSerializers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies.

    That's in the line:serverConfig.Apply(serverConn);

    Im using another database (not the one in the sample), in sql server 2008.

     

    Thanx,

    Estanislao

    Wednesday, May 12, 2010 8:13 PM

Answers

  • Hi,

    I guess that you ran this sample with VSTS debugger attached and enable break when hitting Exception. I believe this exception is an temporary internal exception, if you let the app to continue in your debugger, it will handle this exception silently and continue.

    There is not XmlSerializers in the Microsoft.Data.SqlServer namespace. It is the .net looks for the default class to handle serialization.

    Thanks,
    Dong


    This posting is provided AS IS with no warranties, and confers no rights.
    Wednesday, May 12, 2010 8:38 PM