Exception:调用的目标发生了异常。未将对象引用设置到对象的实例。

报错信息 1
TargetInvocationException: 调用的目标发生了异常。
StackTrace:
   在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   在 System.Delegate.DynamicInvokeImpl(Object[] args)
   在 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)

NullReferenceException: 未将对象引用设置到对象的实例。
StackTrace:
   在 DevExpress.Xpf.Core.Internal.MonoCecilHelper.ReadAssembly(String path)
   在 DevExpress.Xpf.Core.Internal.AssemblyPaletteInjection.InjectPalette(ThemePaletteBase palette, String themeName, String baseThemeName)
   在 DevExpress.Xpf.Core.ThemePaletteGenerator.GenerateAssembly(ThemePaletteBase palette, Theme baseTheme, String newThemeName, String hash)
   在 DevExpress.Xpf.Core.Theme.<>c__DisplayClass358_0.<Initialize>b__0()
   在 DevExpress.Xpf.Core.Theme.LoadFromStream()
   在 DevExpress.Xpf.Core.Theme.GetAssembly()
   在 DevExpress.Xpf.Core.Theme.get_Assembly()
   在 DevExpress.Xpf.Core.ThemedElementsDictionary.GetThemeAssembly(String themeName)
   在 DevExpress.Xpf.Core.ThemedElementsDictionary.ForceThemeKeysLoading(String themeName)
   在 DevExpress.Xpf.Core.ThemeManager.ForceThemeKeyCreating(String themeName)
   在 DevExpress.Xpf.Core.ThemeManager.ChangeTheme(DependencyObject obj, String themeName, Boolean isTouch, Boolean isTouchLineTheme, Boolean isWin11Theme)
   在 DevExpress.Xpf.Core.ThemeManager.ThemeNamePropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
   在 System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   在 System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   在 System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   在 System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   在 System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   在 System.Windows.DependencyObject.SetCurrentValue(DependencyProperty dp, Object value)
   在 DevExpress.Xpf.Utils.Themes.GlobalThemeHelper.SetGlobalTheme(FrameworkElement window)

版本:1.44.22 2026-01-20 19:25 Microsoft Windows NT 10.0.19045.0
报错信息 2
TargetInvocationException
   在 System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   在 System.Delegate.DynamicInvokeImpl(Object[] args)
   在 Microsoft.Win32.SystemEvents.SystemEventInvokeInfo.InvokeCallback(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)

NullReferenceException
未将对象引用设置到对象的实例。
   在 Quicker.Domain.Services.SystemEventsWatcher.tt032Rfw4CW(Object  , SessionSwitchEventArgs  )
版本:1.38.8 2026-01-17 06:05 Microsoft Windows NT 10.0.22631.0