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.HwndHost.OnWmGetObject(IntPtr wparam, IntPtr lparam) 在 System.Windows.Interop.HwndHost.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 System.Windows.Interop.HwndHost.SubclassWndProc(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)