专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > Silverlight

在显示中文的时候出错,小弟我用的是Silverlight 2,VS2008 SP1 (日文韩文等都会出这个错)

发布时间:2011-06-27 20:16:42 文章来源:www.iduyao.cn 采编人员:星星草
在显示中文的时候出错,我用的是Silverlight 2,VS2008 SP1 (日文韩文等都会出这个错)
错误 1 “ValidateXaml”任务意外失败。
System.Xml.XmlException: 给定编码中的字符无效。 行 22,位置 40。
  在 System.Xml.XmlTextReaderImpl.Throw(Exception e)
  在 System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
  在 System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res)
  在 System.Xml.XmlTextReaderImpl.InvalidCharRecovery(Int32& bytesCount, Int32& charsCount)
  在 System.Xml.XmlTextReaderImpl.GetChars(Int32 maxCharsCount)
  在 System.Xml.XmlTextReaderImpl.ReadData()
  在 System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
  在 System.Xml.XmlTextReaderImpl.ParseAttributes()
  在 System.Xml.XmlTextReaderImpl.ParseElement()
  在 System.Xml.XmlTextReaderImpl.ParseElementContent()
  在 System.Xml.XmlTextReaderImpl.Read()
  在 MS.Internal.Xaml.XmlCompatibilityReader.Read()
  在 MS.Internal.Xaml.Parser.XamlScanner.DoXmlRead()
  在 MS.Internal.Xaml.Parser.XamlScanner.Read()
  在 MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementBody>d__23.MoveNext()
  在 MS.Internal.Xaml.Parser.XamlPullParser.<P_Element>d__7.MoveNext()
  在 MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementContent>d__39.MoveNext()
  在 MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementBody>d__23.MoveNext()
  在 MS.Internal.Xaml.Parser.XamlPullParser.<P_Element>d__7.MoveNext()
  在 MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementContent>d__39.MoveNext()
  在 MS.Internal.Xaml.Parser.XamlPullParser.<P_ElementBody>d__23.MoveNext()
  在 MS.Internal.Xaml.Parser.XamlPullParser.<P_Element>d__7.MoveNext()
  在 MS.Internal.Xaml.Parser.XamlPullParser.<Parse>d__0.MoveNext()
  在 MS.Internal.Xaml.TextReaderEnumerator.MoveNext()
  在 MS.Internal.Xaml.XamlTextReader.Read()
  在 MS.MarkupCompiler.ValidationPass.ValidateXaml(String fileName, Assembly[] assemblies, Assembly callingAssembly, TaskLoggingHelper log, Boolean shouldThrow)
  在 Microsoft.Silverlight.Build.Tasks.ValidateXaml.XamlValidator.Execute()
  在 Microsoft.Silverlight.Build.Tasks.ValidateXaml.XamlValidator.Execute()
  在 Microsoft.Silverlight.Build.Tasks.ValidateXaml.Execute()
  在 Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult) SimpleSamplesSilverlight


------解决方案--------------------
Silverlight支持中文编码。 是不是你的代码进行类型转换验证出错?
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: