System.TypeLoadException:未能从程序集"UIAutomationTypes,Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"中加载类型” System.Windows.Automation.Provider.IRawElementProviderSimple"。
在System.Windows.Interop.HwndTarget.CriticalHandleWMGetobject(IntPtr wparam, IntPtr lparam, Visual root, lntPtr handle)
在System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
在System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, lntPtr 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, lnt32 numArgs)
在System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, lnt32 numArgs, Delegate catchHandler)
在System.Windows.Threading.Dispatcher.Legacylnvokelmpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, lnt32 numArgs)在MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg,lntPtr wParam, IntPtr lParam)
在System.Windows.Interop.HwndTarget.CriticalHandleWMGetobject(IntPtr wparam, IntPtr lparam, Visual root, lntPtr handle)
在System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
在System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, lntPtr 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, lnt32 numArgs)
在System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, lnt32 numArgs, Delegate catchHandler)
在System.Windows.Threading.Dispatcher.Legacylnvokelmpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, lnt32 numArgs)在MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg,lntPtr wParam, IntPtr lParam)