Hi, I'm trying using Twitterizer to post tweets in my MonoTouch app. Authentication is working, but now i'm trying to get some tweets. I get this exception because of the json lib used by Twitterizer:
System.TypeLoadException: Could not load type 'Newtonsoft.Json.Utilities.DynamicWrapper' from assembly 'Newtonsoft.Json.MonoTouch, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null'. at Newtonsoft.Json.Utilities.ThreadSafeStore`2[System.Type,System.Type].AddValue (System.Type key) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Utilities.ThreadSafeStore`2[System.Type,System.Type].Get (System.Type key) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonTypeReflector.GetAssociatedMetadataType (System.Type type) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonTypeReflector.GetAttribute[JsonContainerAttribute] (System.Type type) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonTypeReflector.GetAttribute[JsonContainerAttribute] (ICustomAttributeProvider attributeProvider) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Utilities.ThreadSafeStore`2[System.Reflection.ICustomAttributeProvider,Newtonsoft.Json.JsonContainerAttribute].AddValue (ICustomAttributeProvider key) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Utilities.ThreadSafeStore`2[System.Reflection.ICustomAttributeProvider,Newtonsoft.Json.JsonContainerAttribute].Get (ICustomAttributeProvider key) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.CachedAttributeGetter`1[Newtonsoft.Json.JsonContainerAttribute].GetAttribute (ICustomAttributeProvider type) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonTypeReflector.GetJsonContainerAttribute (System.Type type) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonTypeReflector.GetJsonObjectAttribute (System.Type type) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract (System.Type objectType) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract (System.Type type) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.GetContractSafe (System.Type type) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType (Newtonsoft.Json.JsonReader reader, System.Type t, Newtonsoft.Json.JsonConverter propertyConverter) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonConvert.DeserializeObject[TwitterStatusCollection] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonConvert.DeserializeObject[TwitterStatusCollection] (System.String value) [0x00000] in <filename unknown>:0 at Twitterizer.Core.SerializationHelper`1[Twitterizer.TwitterStatusCollection].Deserialize (System.Byte[] webResponseData, Twitterizer.Core.DeserializationHandler deserializationHandler) [0x00000] in <filename unknown>:0 at Twitterizer.Core.TwitterCommand`1[Twitterizer.TwitterStatusCollection].ExecuteCommand () [0x00000] in <filename unknown>:0 at Twitterizer.Core.CommandPerformer.PerformAction[TwitterStatusCollection] (ICommand`1 command) [0x00000] in <filename unknown>:0 at Twitterizer.TwitterTimeline.UserTimeline (Twitterizer.OAuthTokens tokens, Twitterizer.UserTimelineOptions options) [0x00000] in <filename unknown>:0 at Twitterizer.TwitterTimeline.UserTimeline (Twitterizer.OAuthTokens tokens) [0x00000] in <filename unknown>:0 I saw miguel post this about this issue: Looks like the library is dynamically loading a module that was stripped out by the linker. How can i go about solving this? Or isn't this possible? Regards, Koen -- View this message in context: http://monotouch.2284126.n4.nabble.com/Newtonsoft-Json-problem-with-Twitterizer-tp4219606p4219606.html Sent from the MonoTouch mailing list archive at Nabble.com. _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
