MissingMethodException in JSON.Net in Unity3D webplayer -
i'm serializing object using json.net 5.0r6 on unity3d, dotnet 2 version. can run fine in webplayer mode in editor build, when deploy webplayer. missing exception. can same code run fine on android (without stripping) it's not code side.
missingmethodexception: method not found: 'system.collections.objectmodel.keyedcollection<system.string,newtonsoft.json.serialization.jsonproperty>..ctor'. @ newtonsoft.json.serialization.jsonobjectcontract..ctor (system.type underlyingtype) [0x00000] in <filename unknown>:0 @ newtonsoft.json.serialization.defaultcontractresolver.createobjectcontract (system.type objecttype) [0x00000] in <filename unknown>:0 @ newtonsoft.json.serialization.defaultcontractresolver.createcontract (system.type objecttype) [0x00000] in <filename unknown>:0 @ newtonsoft.json.serialization.defaultcontractresolver.resolvecontract (system.type type) [0x00000] in <filename unknown>:0 @ newtonsoft.json.serialization.jsonserializerinternalwriter.getcontractsafe (system.object value) [0x00000] in <filename unknown>:0 @ newtonsoft.json.serialization.jsonserializerinternalwriter.serialize (newtonsoft.json.jsonwriter jsonwriter, system.object value, system.type objecttype) [0x00000] in <filename unknown>:0 @ newtonsoft.json.jsonserializer.serializeinternal (newtonsoft.json.jsonwriter jsonwriter, system.object value, system.type objecttype) [0x00000] in <filename unknown>:0 @ newtonsoft.json.jsonserializer.serialize (newtonsoft.json.jsonwriter jsonwriter, system.object value, system.type objecttype) [0x00000] in <filename unknown>:0 @ newtonsoft.json.jsonconvert.serializeobject (system.object value, system.type type, formatting formatting, newtonsoft.json.jsonserializersettings settings) [0x00000] in <filename unknown>:0 @ newtonsoft.json.jsonconvert.serializeobject (system.object value, formatting formatting, newtonsoft.json.jsonserializersettings settings) [0x00000] in <filename unknown>:0
found similar problem, seems unity3d screwup again
http://forum.unity3d.com/threads/133505-webplayer-and-system-collections-objectmodel-keyedcollection
Comments
Post a Comment