locked
OfflineAppDemo-Batching exception RRS feed

  • Question

  •  

    I've rebuilt this sample, run it and get an error:

     

    Sunchronization Progress Window appeared, empty, shows 3% and

    "Exception has been thrown by the target of an invocation"

     

    ?

     

    Thanks.

    Regards,

    Oleg.

     

     

     

     

    • Moved by Max Wang_1983 Friday, April 22, 2011 9:06 PM forum consolidation (From:SyncFx - Microsoft Sync Framework Database Providers [ReadOnly])
    Thursday, January 10, 2008 10:14 AM

Answers

  • Hi Oleg,

     

    Are you building your app for 64 bit environment. SQLCE won't work in this case. If not, then it should work.

     

    Thanks

    Sunday, January 13, 2008 12:52 AM

All replies

  •  

    New error:

     

    Microsoft.Synchronization.Data.SyncSession cannot be converted to type SyncApplication.SyncWebService.SyncSession

     

    As I understand thisd problem is in WebService ...

     

     

    How can I solve it?

     

    Thursday, January 10, 2008 4:20 PM
  • Hi

     

    Basically, the reference.cs file generated definitions for types that already exist in the sync runtime.

    To solve this, try the following:

     

    1- Find the reference.cs file that is automatically generated by VS.

    2- Make changes to that file as described in the readme.txt file and also use the reference.cs in the demo zip file to see how I made them myself.

     

    Thanks

    Saturday, January 12, 2008 7:39 PM
  • Hi Raffik,

    thanx,

    yes, I made these changes, all is ok.

     

    After this I run sample, click on Synchronize button and receive error: "Method Service.GetChanges can not be reflected" ....

     

    What can it be?...How to catch it?

     

    One thing: I am doing this on my machine : W2003 x64 Server. May be it is not correctly because of SQL CE?

     

    Thank you.

     

    Oleg.

    Saturday, January 12, 2008 7:45 PM
  • Hi Oleg,

     

    Are you building your app for 64 bit environment. SQLCE won't work in this case. If not, then it should work.

     

    Thanks

    Sunday, January 13, 2008 12:52 AM