XmlException:名称不能以'<' Silverlight xaml设计师中的角色

时间:2014-06-27 17:35:17

标签: c# silverlight xaml

从早上起,我尝试修复但尚无结果。我没有意义。它昨天工作但今天我得到了错误。另一件有趣的事情是Line 7404,我没有这么大的代码。

XmlException: Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 7404, position 64.

StackTrace

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)

2 个答案:

答案 0 :(得分:3)

下载的xml无效。 异常消息引用返回的xml,因此您必须转到第7404行,返回xml的第64位并查看错误是如何发生的。

答案 1 :(得分:0)

我这样解决了。

右键单击项目下的settings.settings文件,然后选择Open With。从弹出窗口中选择自动编辑器选择器(xml)。 settings.settings文件将在xml编辑器中打开