[Mono-bugs] [Bug 412976] New: error calling dataset,readxml

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jul 29 12:47:01 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=412976


           Summary: error calling dataset,readxml
           Product: Mono: Class Libraries
           Version: 1.9
          Platform: x86
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Data
        AssignedTo: bnc-blr-team-mono at forge.provo.novell.com
        ReportedBy: sabbadin at sabbasoft.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: DeveloperNet


Description of Problem:
error whe loading following xml into a ds
<NewDataSet>
  <xs:schema id="NewDataSet" xmlns=""
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="NewDataSet" msdata:IsDataSet="true">
      <xs:complexType>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element name="Info">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="Version" type="xs:string" minOccurs="0" />
                <xs:element name="Desc" type="xs:string" minOccurs="0" />
                <xs:element name="Date" type="xs:dateTime" minOccurs="0" />
              </xs:sequence>
            </xs:complexType>
          </xs:element>
        </xs:choice>
      </xs:complexType>
    </xs:element>
  </xs:schema>
  <Info>
    <Version>03.40.00</Version>
    <Desc>03.40.00</Desc>
    <Date>2008-05-07T10:09:30.4338038+02:00</Date>
  </Info>
</NewDataSet>

ERROR IS=
Invalid format. - System.FormatException: Invalid format.
  at System.DateTime.ParseExact (System.String s, System.String[] formats,
IFormatProvider fp, DateTimeStyles style) [0x00000] 
  at System.Xml.XmlConvert.ToDateTime (System.String s, System.String[]
formats) [0x00000] 
  at System.Xml.XmlConvert.ToDateTime (System.String value,
XmlDateTimeSerializationMode mode) [0x00000] 
  at System.Data.XmlDataReader.StringToObject (System.Type type, System.String
value) [0x00000] 
  at System.Data.XmlDataReader.ReadElementElement (System.Data.DataRow row)
[0x00000] 
  at System.Data.XmlDataReader.ReadElementContent (System.Data.DataRow row)
[0x00000] 
  at System.Data.XmlDataReader.ReadElement (System.Data.DataRow row) [0x00000] 
  at System.Data.XmlDataReader.ReadDataSetContent () [0x00000] 
  at System.Data.XmlDataReader.ReadTopLevelElement () [0x00000] 
  at System.Data.XmlDataReader.Process () [0x00000] 
  at System.Data.XmlDataReader.ReadXml (System.Data.DataSet dataset,
System.Xml.XmlReader reader, XmlReadMode mode) [0x00000] 
  at System.Data.DataSet.ReadXml (System.Xml.XmlReader reader, XmlReadMode
mode) [0x00000] 
  at System.Data.DataSet.ReadXml (System.Xml.XmlReader r) [0x00000] 
  at System.Data.DataSet.ReadXml (System.String str) [0x00000] 
  at WKI.Conversions.clsMain.Update () [0x00000] 


How often does this happen? 
always

Additional Information:
the problem is in 2008-05-07T10:09:30.4338038+02:00 .. if i change to 
2008-05-07T10:09:30.4338038 it does work


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list