Exception:“.”(十六进制值 0x00)是无效的字符。

报错信息

ArgumentException: “.”(十六进制值 0x00)是无效的字符。
--Message: “.”(十六进制值 0x00)是无效的字符。
StackTrace:
   在 System.Xml.XmlEncodedRawTextWriter.WriteAttributeTextBlock(Char* pSrc, Char* pSrcEnd)
   在 System.Xml.XmlEncodedRawTextWriter.WriteString(String text)
   在 System.Xml.XmlWellFormedWriter.WriteString(String text)
   在 Snoop.Infrastructure.XMLTreeExporter.ExportItem(TreeItem treeItem, XmlWriter xmlWriter, PropertyFilter filter, Boolean recurse) 位置 C:\projects\snoopwpf\Snoop.Core\Infrastructure\TreeExporter.cs:行号 85
   在 Snoop.Infrastructure.XMLTreeExporter.ExportItem(TreeItem treeItem, XmlWriter xmlWriter, PropertyFilter filter, Boolean recurse) 位置 C:\projects\snoopwpf\Snoop.Core\Infrastructure\TreeExporter.cs:行号 98
   在 Snoop.Infrastructure.XMLTreeExporter.ExportItem(TreeItem treeItem, XmlWriter xmlWriter, PropertyFilter filter, Boolean recurse) 位置 C:\projects\snoopwpf\Snoop.Core\Infrastructure\TreeExporter.cs:行号 98
   在 Snoop.Infrastructure.XMLTreeExporter.ExportItem(TreeItem treeItem, XmlWriter xmlWriter, PropertyFilter filter, Boolean recurse) 位置 C:\projects\snoopwpf\Snoop.Core\Infrastructure\TreeExporter.cs:行号 98
   在 Snoop.Infrastructure.XMLTreeExporter.ExportItem(TreeItem treeItem, XmlWriter xmlWriter, PropertyFilter filter, Boolean recurse) 位置 C:\projects\snoopwpf\Snoop.Core\Infrastructure\TreeExporter.cs:行号 98
   在 Snoop.Infrastructure.XMLTreeExporter.ExportItem(TreeItem treeItem, XmlWriter xmlWriter, PropertyFilter filter, Boolean recurse) 位置 C:\projects\snoopwpf\Snoop.Core\Infrastructure\TreeExporter.cs:行号 98
   在 Snoop.Infrastructure.XMLTreeExporter.ExportItem(TreeItem treeItem, XmlWriter xmlWriter, PropertyFilter filter, Boolean recurse) 位置 C:\projects\snoopwpf\Snoop.Core\Infrastructure\TreeExporter.cs:行号 98
   在 Snoop.Infrastructure.XMLTreeExporter.ExportItem(TreeItem treeItem, XmlWriter xmlWriter, PropertyFilter filter, Boolean recurse) 位置 C:\projects\snoopwpf\Snoop.Core\Infrastructure\TreeExporter.cs:行号 98
   在 Snoop.Infrastructure.XMLTreeExporter.Export(TreeItem treeItem, TextWriter textWriter, PropertyFilter filter, Boolean recurse) 位置 C:\projects\snoopwpf\Snoop.Core\Infrastructure\TreeExporter.cs:行号 61
   在 Snoop.Windows.SnoopUI.HandleExport(Object sender, ExecutedRoutedEventArgs e) 位置 C:\projects\snoopwpf\Snoop.Core\Windows\SnoopUI.xaml.cs:行号 552
   在 System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   在 System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
   在 System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
   在 System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
   在 System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
   在 System.Windows.Input.CommandManager.TransferEvent(IInputElement newSource, ExecutedRoutedEventArgs e)
   在 System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
   在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
   在 MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   在 System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
   在 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)

 

解决方法

暂无解决方案。

相关信息
0 查看
2024-07-27 18:57
Quicker版本
版本 反馈次数