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)
答案 0 :(得分:3)
下载的xml无效。 异常消息引用返回的xml,因此您必须转到第7404行,返回xml的第64位并查看错误是如何发生的。
答案 1 :(得分:0)
我这样解决了。
右键单击项目下的settings.settings文件,然后选择Open With。从弹出窗口中选择自动编辑器选择器(xml)。 settings.settings文件将在xml编辑器中打开