[mono-android] Newtonsoft.Json.Monodroid Issue

Jonathan Pryor jonp at xamarin.com
Mon Dec 5 17:26:25 EST 2011


On Dec 5, 2011, at 5:03 PM, klimaye wrote:
> This assembly from
> 
> https://github.com/chrisntr/Newtonsoft.Json
> 
> was working with 1.9.2
> 
> At runtime, I now get
> 
> json.FromJson<T> Exception : 
> 
> Could not load file or assembly 'Newtonsoft.Json.MonoDroid, Version=4.0.0.0,
> Culture=neutral, PublicKeyToken=null' or one of its dependencies.

Have you tried rebuilding the Newtonsoft.Json.dll assembly against Mono for Android 4.0? It's plausible that the 1.9.2 BCL was incompatible with the 4.0 BCL... :-/

Alternatively, it's possible that Fast Deployment is somehow missing that assembly. You should also try disabling Fast Deployment, Clean, and Rebuild your project. Fast Deployment can be disabled in the Project Properties dialog.

Thanks,
 - Jon



More information about the Monodroid mailing list