On a Universal App project I'm trying to deserialize a XML file, in the Windows version it works fine but in Windows Phone I ran into the following error:
{System.InvalidOperationException: global::App.Data.DataItem cannot be serialized because it does not have a parameterless constructor. at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderList1.Read2_DataItem (Boolean isNullable, Boolean checkType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderList1.Read3_ArrayOfDataItem()}
How can I solve this? My code: [link]