Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# XmlException:名称在Silverlight xaml设计器中不能以“_C#_Silverlight_Xaml - Fatal编程技术网

C# XmlException:名称在Silverlight xaml设计器中不能以“

C# XmlException:名称在Silverlight xaml设计器中不能以“,c#,silverlight,xaml,C#,Silverlight,Xaml,从早上开始,我试图修复,但还没有结果。我说不通。昨天它还在工作,但今天我出错了。另一件有趣的事情是第7404行,我没有这么大的代码行 XmlException:名称不能以“开头下载的xml无效。 异常消息指的是返回的xml,因此您必须转到第7404行,返回的xml的位置64,查看错误是如何发生的。我这样解决了它 在项目下的settings.settings文件上单击鼠标右键,然后选择“打开方式”。从弹出窗口中选择自动编辑器选择器xml。settings.settings文件将在xml编辑器中打开

从早上开始,我试图修复,但还没有结果。我说不通。昨天它还在工作,但今天我出错了。另一件有趣的事情是第7404行,我没有这么大的代码行


XmlException:名称不能以“开头下载的xml无效。 异常消息指的是返回的xml,因此您必须转到第7404行,返回的xml的位置64,查看错误是如何发生的。

我这样解决了它


在项目下的settings.settings文件上单击鼠标右键,然后选择“打开方式”。从弹出窗口中选择自动编辑器选择器xml。settings.settings文件将在xml编辑器中打开

谢谢@Tomas Grosup,但它在运行时不是错误,而是编译时错误。请检查屏幕截图,这是一个运行时错误,并且这些行确实引用了xml。请在客户端\u DownloadStringCompleted方法中放置一个断点,并将xml字符串复制到可以进行调查的地方。抛出的错误是xaml designer。client_DownloadStringCompleted方法不是我写的,我猜是在组件中。组件正在从internet下载一些东西,您也可以尝试打开un并监视您的网络活动。然后,您应该看到该请求返回了无效的xml。
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)