Exception:“System.Windows.Automation.Peers.AutomationPeer”的类型初始值设定项引发异常。程序集“PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”中的类型“MS.Internal.Automation.SelectionProviderWrapper”的方法“GetSelection”没有实现。

报错信息 1
TypeInitializationException: “System.Windows.Automation.Peers.AutomationPeer”的类型初始值设定项引发异常。
--TypeName: System.Windows.Automation.Peers.AutomationPeer
StackTrace:
   在 System.Windows.Automation.Peers.AutomationPeer.RaiseFocusChangedEventHelper(IInputElement newFocus)
   在 System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
   在 System.Windows.Input.KeyboardDevice.PostProcessInput(Object sender, ProcessInputEventArgs e)
   在 System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
   在 System.Windows.Input.InputManager.ProcessStagingArea()
   在 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   在 System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   在 System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
   在 System.Windows.Interop.HwndKeyboardInputProvider.PossiblyDeactivate(IntPtr hwndFocus)
   在 System.Windows.Interop.HwndKeyboardInputProvider.FilterMessage(IntPtr hwnd, WindowMessage message, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 System.Windows.Interop.HwndSource.InputFilterMessage(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)
   在 System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

TypeLoadException: 程序集“PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”中的类型“MS.Internal.Automation.SelectionProviderWrapper”的方法“GetSelection”没有实现。
--Message: 程序集“PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”中的类型“MS.Internal.Automation.SelectionProviderWrapper”的方法“GetSelection”没有实现。
--TypeName: MS.Internal.Automation.SelectionProviderWrapper
StackTrace:
   在 System.Windows.Automation.Peers.AutomationPeer.Initialize()
   在 System.Windows.Automation.Peers.AutomationPeer..cctor()

版本:1.43.53 2024-12-19 19:13 Microsoft Windows NT 10.0.19045.0
版本:1.43.45 2024-12-19 16:51 Microsoft Windows NT 10.0.22000.0
版本:1.43.45 2024-12-16 18:20 Microsoft Windows NT 10.0.22000.0
版本:1.43.29 2024-12-16 18:14 Microsoft Windows NT 10.0.22000.0
版本:1.43.53 2024-12-16 10:31 Microsoft Windows NT 10.0.22000.0
版本:1.43.47 2024-12-10 21:53 Microsoft Windows NT 10.0.22000.0
版本:1.43.53 2024-12-09 16:12 Microsoft Windows NT 10.0.19045.0
版本:1.43.53 2024-12-09 11:30 Microsoft Windows NT 10.0.19045.0
版本:1.43.33 2024-12-08 21:40 Microsoft Windows NT 10.0.19045.0
版本:1.43.41 2024-12-05 20:25 Microsoft Windows NT 10.0.19045.0
版本:1.43.47 2024-12-03 22:21 Microsoft Windows NT 10.0.19045.0
版本:1.43.29 2024-12-02 11:16 Microsoft Windows NT 10.0.19045.0
版本:1.43.52 2024-12-01 22:30 Microsoft Windows NT 10.0.19045.0
版本:1.43.37 2024-11-27 13:11 Microsoft Windows NT 10.0.19045.0
版本:1.43.47 2024-11-25 21:12 Microsoft Windows NT 10.0.19045.0
版本:1.43.47 2024-11-24 14:08 Microsoft Windows NT 10.0.19045.0