Why does XmlDocument.LoadFromFileAsync throw "Unknown runtime error" with invalid XML? RRS feed

  • Question

  • Wouldn't it be helpful to specify in the error where the syntax error in the XML file is located at? I mean like msxml does it since version 1.0? An invalid XML hardly qualifies for an "unknown error". The parser identified the XML as being invalid so at least some sort of "invalid file" error should be reported.

    The errors code is 0xC00CE56D, which comes from IXMLDOMParserError. How do I get additional informations?

    • Edited by pkursawe Wednesday, December 3, 2014 10:07 PM
    Wednesday, December 3, 2014 10:05 PM


  • As I know 0xC00CE56D looks like end tag does not match start tag, but I cannot tell more for instance which tag is not match.

    However I think there are lot of XML validator online can tell you which tag does not meet, for instance: http://www.w3schools.com/xml/xml_validator.asp


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, December 4, 2014 7:30 AM