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)
   在 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: 未将对象引用设置到对象的实例。
StackTrace:
   在 Quicker.Domain.Services.SystemEventsWatcher.aEYm8nVgpyh(Object  , SessionSwitchEventArgs  )

版本:1.40.20 2024-04-17 08:26 Microsoft Windows NT 10.0.22631.0