https://bugzilla.novell.com/show_bug.cgi?id=676993
https://bugzilla.novell.com/show_bug.cgi?id=676993#c0 Summary: Invalid cast exception toing xml validation Classification: Mono Product: Mono: Runtime Version: SVN Platform: 64bit OS/Version: RHEL 5 Status: NEW Severity: Normal Priority: P5 - None Component: misc AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; MS-RTC LM 8) doing an xml validation Im getting this error on mono but not on ms .net: Unhandled Exception: System.InvalidCastException: Conversion from schema type urn:DRMS.ESPTable:Percentage (type code Decimal, resolved type code Decimal) to String is not supported. at System.Xml.Schema.XmlAtomicValue.get_Value () [0x00000] in <filename unknown>:0 at System.Xml.Schema.XmlSchemaValidator.AssessAttributeLocallyValid (System.Xml.Schema.XmlSchemaAttribute attr, System.Xml.Schema.XmlSchemaInfo info, System.Xml.Schema.XmlValueGetter getter) [0x00000] in <filename unknown>:0 at System.Xml.Schema.XmlSchemaValidator.AssessAttributeElementLocallyValidType (System.String localName, System.String ns, System.Xml.Schema.XmlValueGetter getter, System.Xml.Schema.XmlSchemaInfo info) [0x00000] in <filename unknown>:0 at System.Xml.Schema.XmlSchemaValidator.ValidateAttribute (System.String localName, System.String ns, System.Xml.Schema.XmlValueGetter attributeValue, System.Xml.Schema.XmlSchemaInfo info) [0x00000] in <filename unknown>:0 at Mono.Xml.Schema.XmlSchemaValidatingReader.Read () [0x00000] in <filename unknown>:0 at monofail7.Main (System.String[] args) [0x00000] in <filename unknown>:0 It looks like ms .net is doing a correct casting but mono isnt. Note this used to work but I think this might have gotten broken some time over the last few weeks. Note, I was playing arround with the xml and sometime mono would say everything is valid and ms .net would say there is a problem which is correct since there was a problem so there might be other validation issues but lets see how it goes addressing this issue. Reproducible: Always Steps to Reproduce: 1.compile monofail7.cs 2.run it and get the error on mono but on ms .net it works ok 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
