Hi
I'm running into a scenario with a DataSet that has a schema loaded into it, tries to then load data (that matches the schema), and fails with a "Input string was not in a correct format" exception because the decimal field in one of the incoming fields is written in exponential form.
I've looked at generating the XML with a fully written decimal value (as opposed to using exponential notation) but that's an issue because right now the XML is the serialized output of a class with a public Double field (we're just using the [serializable] attribute). This class is auto generated and would be a huge pain to change (e.g. to implement ISerializable and then format each field in a customized manner).
I've tried to find a way for the DataSet to read exponential notation into decimal fields and could not. MS apparently had reported something this as a bug in 2005 (http://support.microsoft.com/kb/321542), but it isn't exactly the same thing.
Any ideas on how to get a dataset.readxml to accept exponential notation as a valid decimal value?
Thx.
I'm running into a scenario with a DataSet that has a schema loaded into it, tries to then load data (that matches the schema), and fails with a "Input string was not in a correct format" exception because the decimal field in one of the incoming fields is written in exponential form.
I've looked at generating the XML with a fully written decimal value (as opposed to using exponential notation) but that's an issue because right now the XML is the serialized output of a class with a public Double field (we're just using the [serializable] attribute). This class is auto generated and would be a huge pain to change (e.g. to implement ISerializable and then format each field in a customized manner).
I've tried to find a way for the DataSet to read exponential notation into decimal fields and could not. MS apparently had reported something this as a bug in 2005 (http://support.microsoft.com/kb/321542), but it isn't exactly the same thing.
Any ideas on how to get a dataset.readxml to accept exponential notation as a valid decimal value?
Thx.
Comment