Exception:调用的目标发生了异常。初始化“System.Windows.Controls.Grid”时引发了异常。异常来自 HRESULT:0x80040200

报错信息

TargetInvocationException
   在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   在 System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   在 LuzcDoc.MainViewModel.DoNavChanged(Object obj) 位置 M:\luzcDoc\版本备份\luzcDoc-quicker\主窗口\MainViewModel.cs:行号 35
   在 LuzcDoc.ZhuWindows.Windowzhu_Loaded(Object sender, RoutedEventArgs e) 位置 M:\luzcDoc\版本备份\luzcDoc-quicker\主窗口\ZhuWindows.xaml.cs:行号 92
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   在 System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   在 MS.Internal.LoadedOrUnloadedOperation.DoWork()
   在 System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   在 System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   在 System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   在 System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   在 System.Windows.Interop.HwndTarget.OnResize()
   在 System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   在 System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 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)

XamlParseException
初始化“System.Windows.Controls.Grid”时引发了异常。
   在 System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   在 System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   在 System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   在 System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   在 LuzcDoc.luzc导出.page..ctor() 位置 M:\luzcDoc\版本备份\luzcDoc-quicker\luzc导出\page.xaml.cs:行号 28

COMException
异常来自 HRESULT:0x80040200
   在 System.Runtime.InteropServices.ComTypes.IConnectionPointContainer.FindConnectionPoint(Guid& riid, IConnectionPoint& ppCP)
   在 System.Runtime.InteropServices.ComEventsSink.Advise(Object rcw)
   在 System.Runtime.InteropServices.ComEventsInfo.AddSink(Guid& iid)
   在 System.Runtime.InteropServices.ComEventsHelper.Combine(Object rcw, Guid iid, Int32 dispid, Delegate d)
   在 System.Runtime.InteropServices.ComAwareEventInfo.AddEventHandler(Object target, Delegate handler)
   在 LuzcDoc.luzc导出.page.Grid_Initialized(Object sender, EventArgs e) 位置 M:\luzcDoc\版本备份\luzcDoc-quicker\luzc导出\page.xaml.cs:行号 53
   在 System.Windows.FrameworkElement.RaiseInitialized(EventPrivateKey key, EventArgs e)
   在 System.Windows.FrameworkElement.TryFireInitialized()
   在 MS.Internal.Xaml.Runtime.ClrObjectRuntime.InitializationGuard(XamlType xamlType, Object obj, Boolean begin) 

解决方法

暂无解决方案。

相关信息
0 查看
2022-06-17 11:02
Quicker版本
版本 反馈次数