Exception:名称不能以“{”字符(十六进制值 0x7B)开头。 第 2 行,位置 13。名称不能以“{”字符(十六进制值 0x7B)开头。 第 2 行,位置 13。

报错信息

XamlParseException: 名称不能以“{”字符(十六进制值 0x7B)开头。 第 2 行,位置 13。
--LineNumber: 2
--LinePosition: 13
--BaseUri: pack://application:,,,/
StackTrace:
   在 System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   在 System.Windows.Markup.XamlReader.Load(XmlReader reader, ParserContext parserContext, XamlParseMode parseMode, Boolean useRestrictiveXamlReader, List`1 safeTypes)
   在 System.Windows.Markup.XamlReader.Load(XmlReader reader)
   在 DynamicClass.CreateAppButton(String buttonId, UnifiedItemInfo buttonInfo, WindowState state)
   在 DynamicClass.<PopulateButtonsAsync>d__2b6.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

XmlException: 名称不能以“{”字符(十六进制值 0x7B)开头。 第 2 行,位置 13。
--LineNumber: 2
--LinePosition: 13
--Message: 名称不能以“{”字符(十六进制值 0x7B)开头。 第 2 行,位置 13。
StackTrace:
   在 System.Xml.XmlTextReaderImpl.Throw(Exception e)
   在 System.Xml.XmlTextReaderImpl.ParseAttributes()
   在 System.Xml.XmlTextReaderImpl.ParseElement()
   在 System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   在 System.Xaml.XmlCompatibilityReader.Read()
   在 MS.Internal.Xaml.Parser.XamlScanner.DoXmlRead()
   在 MS.Internal.Xaml.Parser.XamlPullParser.<Parse>d__4.MoveNext()
   在 MS.Internal.Xaml.NodeStreamSorter.StartNewNodeStreamWithSettingsPreamble()
   在 MS.Internal.Xaml.NodeStreamSorter..ctor(XamlParserContext context, XamlPullParser parser, XamlXmlReaderSettings settings, Dictionary`2 xmlnsDictionary)
   在 System.Xaml.XamlXmlReader.Initialize(XmlReader givenXmlReader, XamlSchemaContext schemaContext, XamlXmlReaderSettings settings)
   在 System.Windows.Markup.XamlReader.Load(XmlReader reader, ParserContext parserContext, XamlParseMode parseMode, Boolean useRestrictiveXamlReader, List`1 safeTypes)

 

解决方法

暂无解决方案。

相关信息
0 查看
2026-03-10 22:21
Quicker版本
版本 反馈次数