Exception:未能从程序集“UIAutomationTypes, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”中加载类型“System.Windows.Automation.Provider.IRawElementProviderSimple”。

报错信息 1
TypeLoadException
   在 System.Windows.Interop.HwndTarget.CriticalHandleWMGetobject(IntPtr wparam, IntPtr lparam, Visual root, IntPtr handle)
   在 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)
版本:1.37.4 2023-12-05 14:25 Microsoft Windows NT 10.0.19045.0
版本:1.38.17 2023-12-05 14:24 Microsoft Windows NT 10.0.19045.0
版本:1.33.38 2023-12-01 20:37 Microsoft Windows NT 10.0.19045.0
版本:1.29.3 2023-12-01 20:36 Microsoft Windows NT 10.0.19045.0
版本:1.28.2 2023-11-27 09:11 Microsoft Windows NT 10.0.19045.0
版本:1.38.31 2023-11-11 09:54 Microsoft Windows NT 10.0.19045.0
报错信息 2
TypeLoadException: 未能从程序集“UIAutomationTypes, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”中加载类型“System.Windows.Automation.Provider.IRawElementProviderSimple”。
--Message: 未能从程序集“UIAutomationTypes, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”中加载类型“System.Windows.Automation.Provider.IRawElementProviderSimple”。
--TypeName: System.Windows.Automation.Provider.IRawElementProviderSimple
StackTrace:
   在 System.Windows.Interop.HwndTarget.CriticalHandleWMGetobject(IntPtr wparam, IntPtr lparam, Visual root, IntPtr handle)
   在 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)

版本:1.40.17 2023-12-04 21:21 Microsoft Windows NT 10.0.19045.0
版本:1.40.17 2023-12-03 22:06 Microsoft Windows NT 10.0.19045.0
版本:1.40.11 2023-12-01 20:46 Microsoft Windows NT 10.0.19045.0
版本:1.40.11 2023-11-29 17:33 Microsoft Windows NT 10.0.19045.0
版本:1.40.11 2023-11-27 07:22 Microsoft Windows NT 10.0.19045.0
版本:1.40.11 2023-11-22 21:43 Microsoft Windows NT 10.0.19045.0
版本:1.40.11 2023-11-22 21:43 Microsoft Windows NT 10.0.19045.0
版本:1.39.49 2023-11-13 15:32 Microsoft Windows NT 10.0.22000.0
版本:1.40.11 2023-11-13 10:20 Microsoft Windows NT 10.0.19045.0
版本:1.39.43 2023-11-11 15:27 Microsoft Windows NT 10.0.22000.0