locked
Method not found exception on calling Synchronize() RRS feed

  • Question

  • Hello,

     

    I've trouble using the MSF to synchronize an Oracle Db into a SqlCe Db.

    On calling the Synchronize() method I get an "Method not found: Microsoft.Synchronization.Data.SyncException Microsoft.Synchronization.Data.SyncExpt.AnotherSyncInProgressError(System.String, System.String)" exception.

     

    I have installed SqlServerCe SP 1.

     

    The following Dll's are used by the app:

    Microsoft.Synchronization 1.0.0.0

    Microsoft.Synchronization.Data 2.0.0.0

    Microsoft.Synchronization.Data.Server 2.0.0.0

    Microsoft.Synchronization.Data.SqlServerCe 3.5.0.0

    System.Data.SqlServerCe 3.5.1.0

     

    To avoid an InvalidCastException on setting the Agent.LocalProvider I introduced assemblyBinding in App.config

    <runtime>

    <assemblyBinding xmlns="urnTongue Tiedchemas-microsoft-com:asm.v1">

    <dependentAssembly>

    <assemblyIdentity name="Microsoft.Synchronization.Data" publicKeyToken="89845DCD8080CC91" culture="neutral"/>

    <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>

    </dependentAssembly>

    <dependentAssembly>

    <assemblyIdentity name="Microsoft.Synchronization.Data.Server" publicKeyToken="89845DCD8080CC91" culture="neutral"/>

    <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>

    </dependentAssembly>

    </assemblyBinding>

    </runtime>

     

    Does anyone have an idea why this "method not found exception" occurs?

     

    • Moved by Hengzhe Li Friday, April 22, 2011 8:02 AM (From:SyncFx - Microsoft Sync Framework Database Providers [ReadOnly])
    Friday, October 17, 2008 12:42 PM

All replies

  • Seems like a stale install. Can you uninstall older versions and retry with the new RTM versions? Also if it continues please post back the complete stack trace

     

    Friday, October 17, 2008 6:10 PM
    Moderator
  • Using the old version of Microsoft.Synchronization.Data (1.0.0.0) and Microsoft.Synchronization.Data.Server (1.0.0.0) and without new dll Microsoft.Synchronization sync's my datastores very well.
    But when I try to use version 2.0.0.0 of these dll's I'll get exceptions.

    Same behavior on own home pc with new installation of latest MSF 1.0.

    Source "Microsoft.Synchronization.Data.SqlServerCe"
    Stack Trace
    "   at Microsoft.Synchronization.Data.SqlServerCe.SqlCeClientSyncProvider.BeginTransaction(SyncSession syncSession)\r\n   bei Microsoft.Synchronization.SyncAgent.DataSynchronize()\r\n   at Microsoft.Synchronization.SyncAgent.Synchronize()\r\n   at SyncPrototype.SyncModule.SyncMgmtFacade.Synchronize() in K:\\VS Projects\\SyncPrototype\\SyncPrototyp\\BusinessLogic\\SyncMgmtFacade.cs:Line33.\r\n   bei SyncPrototype.SyncBusinessModule.SyncBusinessPresentationController.HandleCommandClick(Object sender, EventArgs e) in K:\\VS Projects\\SyncPrototype\\SyncBusiness\\SyncBusinessPresentationController.cs:Line45.\r\n   bei Microsoft.Practices.CompositeUI.Commands.Command.OnExecuteAction(Object sender, EventArgs e) in C:\\SCSF\\Main\\Source\\CompositeUI\\Commands\\Command.cs:Line 230.\r\n   at Microsoft.Practices.CompositeUI.Commands.CommandAdapter.FireCommand() in C:\\SCSF\\Main\\Source\\CompositeUI\\Commands\\CommandAdapter.cs:Line123.\r\n   at Infragistics.Practices.CompositeUI.WinForms.Commands.ToolBaseCommandAdapter.OnEventInvoked(Object sender, EventArgs e) in C:\\ThirdParty\\Infragistics\\Main\\Source\\Infragistics2.CompositeUI.WinForms.v7.3\\Commands\\ToolBaseCommandAdapter.cs:Line70.\r\n   at Infragistics.Win.UltraWinToolbars.ToolClickEventHandler.Invoke(Object sender, ToolClickEventArgs e)\r\n   at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.OnToolClick(ToolClickEventArgs e)\r\n   bei Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.FireEvent(ToolbarEventIds id, EventArgs e)\r\n   at Infragistics.Win.UltraWinToolbars.ToolBase.OnToolClick()\r\n   at Infragistics.Win.UltraWinToolbars.ButtonToolUIElement.DoClickProcessing(MouseEventArgs e)\r\n   at Infragistics.Win.UltraWinToolbars.ButtonToolUIElement.OnMouseUp(MouseEventArgs e)\r\n   bei Infragistics.Win.ControlUIElementBase.ProcessMouseUpHelper(Object sender, MouseEventArgs e)\r\n   at Infragistics.Win.ControlUIElementBase.ProcessMouseUp(Object sender, MouseEventArgs e)\r\n   bei Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)\r\n   at Infragistics.Win.UltraControlBase.OnMouseUp(MouseEventArgs e)\r\n   at Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea.OnMouseUp(MouseEventArgs e)\r\n   bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)\r\n   at System.Windows.Forms.Control.WndProc(Message& m)\r\n   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)"
    Friday, October 17, 2008 8:07 PM