R
RJN
Hi
I'm getting an error while deserializing an xml into object.
[FormatException: Input string was not in a correct format.]
System.Number.ParseDouble(String s, NumberStyles style,
NumberFormatInfo info) +0
System.Double.Parse(String s, NumberStyles style, IFormatProvider
provider) +208
System.Xml.XmlConvert.ToDouble(String s)
How do I overcome this?
This is my deserializing code
XmlTextReader xtr = new XmlTextReader(oStream);
System.Xml.Serialization.XmlSerializer oSerializer = new
System.Xml.Serialization.XmlSerializer(typeof(ServicePartners));
ServicePartners objPartnerData =
(ServicePartners)oSerializer.Deserialize(xtr);
I was getting another error "String was not recognized as a valid time"
which I overacme by applying the attribute
[System.Xml.Serialization.XmlIgnoreAttribute()]. Is this the right way?
Regards
rjn
I'm getting an error while deserializing an xml into object.
[FormatException: Input string was not in a correct format.]
System.Number.ParseDouble(String s, NumberStyles style,
NumberFormatInfo info) +0
System.Double.Parse(String s, NumberStyles style, IFormatProvider
provider) +208
System.Xml.XmlConvert.ToDouble(String s)
How do I overcome this?
This is my deserializing code
XmlTextReader xtr = new XmlTextReader(oStream);
System.Xml.Serialization.XmlSerializer oSerializer = new
System.Xml.Serialization.XmlSerializer(typeof(ServicePartners));
ServicePartners objPartnerData =
(ServicePartners)oSerializer.Deserialize(xtr);
I was getting another error "String was not recognized as a valid time"
which I overacme by applying the attribute
[System.Xml.Serialization.XmlIgnoreAttribute()]. Is this the right way?
Regards
rjn