Hi,
I deserialize xml data using this code:
XmlSerializer serializer = new XmlSerializer (typeof(ArrayList), new Type[] { typeof(GameProperties), typeof(Class1), typeof(Class2)});
This is working perfectly on windows and OSX, but on Android i receive the following errore at the previous line code:
An exception was thrown by the type initializer for System.Xml.Serialization.XmlSerializer
System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. ---> System.MisdException: Method not found: 'Default constructor not found...ctor() of System.Configuration.ExeConfigurationHost'.
at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in <filename unknown>:0
at System.Activator.CreateInstance (System.Type type) [0x00000] in <filename unknown>:0
at System.Configuration.InternalConfigurationSystem.Init (System.Type typeConfigHost, System.Object[] hostIni
in <filename unknown>:0
at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] host
arams) [0x00000] in <filename unknown>:0
at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel,
Assembly calling_assembly, System.String exePath) [0x00000] in <filename unknown>:0
at System.Configuration.ClientConfiguration
Can you tell me how to fix this?
Any ideas?
Thanks!!
any idea?
– catwomanI don't know about android but I tried Serialization / serialize data in Unity iOs I had the same problem with Serialization. Though I cannot find any solution to this
– sasuke908