在显示中文的时候出错,我用的是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