SynchronizationExeption when trying to get items from Azure

4 posts, 0 answers
  1. mema
    mema avatar
    2 posts
    Member since:
    Jul 2013

    Posted 14 Mar 2014 Link to this post

    I have an Mobile Service with 0 items. When I start my demo app and do a 

    await MainViewModel.Instance.Context.SynchronizeAsync();

    I get an exeption with the following message

    Method not found: 'Newtonsoft.Json.Serialization.ITraceWriter Newtonsoft.Json.JsonSerializerSettings.get_TraceWriter()'.

    Any hints as to why?? Am I referencing a wrong version of Newtonsoft.Json (Currently it is Version 4.5.0.0, which were added by template)
  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 14 Mar 2014 Link to this post

    Hello Mikkel,

    Thanks for writing.

    This looks like a problem caused by mismatched assembly versions. Would it be possible that you send us a zip with your project or simply let us know which steps to take so that we can reproduce the scenario on our side and see how to fix it?

    Regards,
    Deyan
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
  3. DevCraft banner
  4. Mikkel
    Mikkel avatar
    1 posts
    Member since:
    Mar 2013

    Posted 14 Mar 2014 in reply to Deyan Link to this post

    Hi Deyan

    I seem to have fixed the issue. I looks like the 'Newtonsoft.Json.dll' supplied in the x86 folder is incompatible.
    I added the newest Json.net via nuget, but I also had to change the hintpath for the assembly in the .csproj file.

    Also following the guide at http://www.telerik.com/help/windows-phone/radcontrols-cloud-synchronization-gettingstarted-azure.html did not seem to work. I got timeouts all the time. It seems you expect a SynchronizationId column, which is not present, when no items have been created yet.
    So the method 'await MainViewModel.Instance.Context.SynchronizeAsync();' kept throwing a SynchronizationException until I added this column.

    Mikkel
  5. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 14 Mar 2014 Link to this post

    Hi Mikkel,

    Thanks for writing.

    Yes, I myself have been able to identify the reason for the error with the Newtonsoft version. Good that you've managed to resolve that on your side. I will see why this happens by default and will make sure to address it in our codebase.

    There are a couple of system properties that aid the synchronization algorithms. The datetime properties, as well as the SynchronizationId property. I don't recall having issues similar the the one you mention but I will make sure to replay the scenario.

    I will strongly encourage you to share with us any feedback you might have regarding this component in terms of:
    - API
    - functionality
    - performance, etc.

    Since we are actively developing it now, your experience is important to us.

    Thanks for your time!

    Regards,
    Deyan
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
Back to Top
DevCraft banner