This is a migrated thread and some comments may be shown as answers.

SynchronizationExeption when trying to get items from Azure

3 Answers 48 Views
CloudDataSync
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
mema
Top achievements
Rank 1
mema asked on 14 Mar 2014, 12:23 PM
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)

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 14 Mar 2014, 02:07 PM
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.

 
0
Mikkel
Top achievements
Rank 1
answered on 14 Mar 2014, 02:35 PM
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
0
Deyan
Telerik team
answered on 14 Mar 2014, 03:06 PM
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.

 
Tags
CloudDataSync
Asked by
mema
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Mikkel
Top achievements
Rank 1
Share this question
or