none
MissingMethodException - AnotherSyncInProgressError RRS feed

  • Question

  • Hi all,

    My app was running well while using these assemblies:

    Microsoft.Synchronization                       2.0.0.0

    Microsoft.Synchronization.Data                  1.0.0.0

    Microsoft.Synchronization.Data.Server           1.0.0.0

    Microsoft.Synchronization.Data.SqlServerCe      3.5.0.0

    Currently, I need to adopt SyncTracer to trace the synchronization process. The SyncTracer was proven unavailable so I update the Microsoft.Synchronization.Data to version 3.0.0.0 - and also update the app.config accordingly.

    SyncTracer is available by the update. But I get this error on that circumstance:

    System.MissingMethodException was caught
       Message="Method not found: 'Microsoft.Synchronization.Data.SyncException Microsoft.Synchronization.Data.SyncExpt.AnotherSyncInProgressError(System.String, System.String)'."
       Source="Microsoft.Synchronization.Data.SqlServerCe"

     

    Could you please help?

     

    Furthermore, I'm wondering about this MSDN documentation:

    this link says that SyncException is one class of Namespace: Microsoft.Synchronization.Data. But this link does not list it within the Namespace.

    Could somebody advice?

     

    thanks,

     

    Agung

     

    Thursday, June 17, 2010 3:54 AM

Answers

  • From the version of Microsoft.Synchronization, looks like you are using Sync Framework 2.0.

    With sync framework 2.0, all the database sync provider related dlls should be referenced to

    Microsoft.Synchronization                       2.0.0.0

    Microsoft.Synchronization.Data                  3.0.0.0

    Microsoft.Synchronization.Data.Server           3.0.0.0

    Microsoft.Synchronization.Data.SqlServerCe      3.0.0.0

    (I know this is a little bit confusing, especially for SqlServerCe assembly)

     

    If you want to enable tracing for sync components, you can simply put this

    <configuration>
      <system.diagnostics>
        <switches>
          <!--  0-off, 1-error, 2-warn, 3-info, 4-verbose. -->
          <add name="SyncTracer" value="3" />
        </switches>

        <trace autoflush="true">
          <listeners>
            <add name="TestListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="c:\TraceSample.txt"/>
          </listeners>
        </trace>
      </system.diagnostics>
    </configuration>
    as yourProgram.Exe.Config, then it should work. More details at http://msdn.microsoft.com/en-us/library/cc807160.aspx 

     

    Thursday, June 17, 2010 4:56 PM
    Answerer