I have an UWP app deployed to the store. When I try to deserialize the object newtonsoft throws an error.
Json string is very simple:
{"id":1,"IsOnline":true}
This only occurs on the Store release version. I've run it in Visual Studio with .Net Native and Optimize Code turned on and it works fine. I've even sideloaded the same application (release version) build from the appxbundle created when I make the package for the store.
Exception:
System.FieldAccessException: Attempt by method 'Newtonsoft.Json.JsonSerializer..ctor()' to access field 'Newtonsoft.Json.JsonSerializerSetting.DefaultContext' failed.