XmlException:名称不能以'<'字符在Silverlight xaml设计器
本文关键字:Silverlight xaml 字符 不能 XmlException | 更新日期: 2023-09-27 18:10:39
从早上开始,我试图修复但没有结果。我说不通。它昨天是工作的,但今天我得到了错误。另一个有趣的事情是7404行,我没有这么大的一行代码。
XmlException: Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 7404, position 64.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ParseAttributes()
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
at ESRI.ArcGIS.Client.Toolkit.DataSources.WmsLayer.client_DownloadStringCompleted(Object sender, DownloadStringCompletedEventArgs e)
at System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs e)
at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)
下载的xml无效。异常消息指向返回的xml,因此必须转到第7404行,返回的xml的第64位,查看错误是如何发生的。
我是这样解决的。
右键单击设置。项目下的设置文件,并选择Open With。从弹出窗口中选择自动编辑器选择器(xml)。设置。设置文件将在XML编辑器