我从以下代码块中得到以下异常。错误显示在第79行

时间:2016-03-03 14:13:12

标签: xml

我的网站未显示,显示以下错误。是由不正确的字符引起的吗?

An error occurred while parsing EntityName. Line 2, position 1537.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Xml.XmlException: An error occurred while parsing EntityName. Line 2, position 1537.

Source Error:


Line 77:                 If strXML <> "" Then
Line 78:                     Dim rssDoc As New XmlDocument
Line 79:                     rssDoc.LoadXml(strXML)
Line 80: 
Line 81:                     Call Me.DateUpdated_Reset()



Stack Trace:


[XmlException: An error occurred while parsing EntityName. Line 2, position 1537.]
   System.Xml.XmlTextReaderImpl.Throw(Exception e) +76
   System.Xml.XmlTextReaderImpl.Throw(String res, String arg) +127
   System.Xml.XmlTextReaderImpl.ParseEntityName() +129
   System.Xml.XmlTextReaderImpl.ParseEntityReference() +50
   System.Xml.XmlTextReaderImpl.Read() +623
   System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) +786
   System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +53
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +171
   System.Xml.XmlDocument.Load(XmlReader reader) +109
   System.Xml.XmlDocument.LoadXml(String xml) +113

感谢您提供任何帮助

0 个答案:

没有答案