After loaded dataset from xml file, if InvalidCastException was thrown with properties, or ArgumentException was thrown while ReadXml(fileName, XmlReadMode.InferSchema):
A way: ReadXml(fileName, XmlReadMode.IgnoreSchema), then update the properties value(this can be done by load xml file to XmlDocument, then replace the dataset properties with the XmlDocument values.)