Newtonsoft.Json.Net20 On Unity

Hi, I would like to use JSON.Net wich is supposed to be compatible with .Net 2. I' have downloaded the 3.8 and 3.7 (and newer) but i'm stuck to this error (see the end of the post)

I checked the Unity System.dll and the assemblie does define this. And actually it's perfectly fine on Mono 2.4.

Any ideas? Thanks

` Internal compiler error. See the console log for more information. output was: Unhandled Exception: System.TypeLoadException: Could not load type 'System.ComponentModel.TypeDescriptionProviderAttribute' from assembly 'Newtonsoft.Json.Net20.Merged'.

at (wrapper managed-to-native) System.MonoCustomAttrs:GetCustomAttributesInternal (System.Reflection.ICustomAttributeProvider,System.Type,bool)

at System.MonoCustomAttrs.GetCustomAttributesBase (ICustomAttributeProvider obj, System.Type attributeType) [0x00000] in :0

at System.MonoCustomAttrs.GetCustomAttributes (ICustomAttributeProvider obj, System.Type attributeType, Boolean inherit) [0x00000] in :0

at System.MonoType.GetCustomAttributes (System.Type attributeType, Boolean inherit) [0x00000] in :0

at Mono.CSharp.AttributeTester.GetObsoleteAttribute (System.Type type) [0x00000] in :0

at Mono.CSharp.Expression.ResolveAsTypeTerminal (IMemberContext ec, Boolean silent) [0x00000] in :0

at Mono.CSharp.Expression.ResolveAsContextualType (IMemberContext rc, Boolean silent) [0x00000] in :0

at Mono.CSharp.LocalInfo.Resolve (Mono.CSharp.ResolveContext ec) [0x00000] in :0

at Mono.CSharp.Block.ResolveMeta (Mono.CSharp.BlockContext ec, Int32 offset) [0x00000] in :0

at Mono.CSharp.ToplevelBlock.ResolveMeta (Mono.CSharp.BlockContext ec, Mono.CSharp.ParametersCompiled ip) [0x00000] in :0

at Mono.CSharp.ToplevelBlock.Resolve (Mono.CSharp.FlowBranching parent, Mono.CSharp.BlockContext rc, Mono.CSharp.ParametersCompiled ip, IMethodData md) [0x00000] in :0

`

PS : i tried the binairies 4.0, 3.8, 3.7 ,3.5 and i also compile and merge like the author say : http://james.newtonking.com/default.aspx?PageIndex=5

I was thinking that this compiler error means that my System.dll don't have System.ComponentModel.TypeDescriptionProviderAttribute on the assembly, but Unity System.dll has. So i guess that's something else. So if someone can explain me the error. Is it that something like the LinqBridge (http://www.albahari.com/nutshell/linqbridge.aspx) may use another version of the System.dll ?

What is confusing is that everything is fine on MonoDevelop :(

So i started from a former version, the 2.0 and after some work removing references to System.Web and System.Drawing, i managed to use Json.Net on Unity Web Player ...

Easy ;)