问题描述
大家好,
我已经在我的新机器上安装了2017/2019年的Visual Studio - 带有32 GB RAM的64位Windows 10和一个Microsoft无线鼠标和键盘。我还购买并安装了最新的telerik组件集。每次我现在构建并尝试运行Windows
桌面应用程序时,我都会收到以下错误:
System.FieldAccessException :尝试通过方法'System.Windows.Forms.SafeNativeMethods._TrackMouseEvent(TRACKMOUSEEVENT)'访问字段'System.AccessibilityImprovements.useLegacyAccessibilityFeatures'失败。
  at System.Windows.Forms.SafeNativeMethods._TrackMouseEvent(TRACKMOUSEEVENT tme)
at System.Windows.Forms.SafeNativeMethods.TrackMouseEvent(TRACKMOUSEEVENT tme)
at System.Windows.Forms.Control.HookMouseEvent()
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,Int32 msg,IntPtr wparam,IntPtr lparam)
我试过了很多东西要解决它但是没有用。在我的32位笔记本电脑上工作正常。我尝试使用app.conf文件中的辅助功能设置,但我一定做错了。请有人请,请帮助!!
谢谢
问候
John
Hi all,
I have installed visual studio 2017 / 2019 on my new machine - 64 bit windows 10 with 32 GB ram and a Microsoft wireless mouse and keyboard. I have also purchased and installed latest telerik component set. Every time I now build and try and run a windows desktop application I get the following error:
System.FieldAccessException: Attempt by method 'System.Windows.Forms.SafeNativeMethods._TrackMouseEvent(TRACKMOUSEEVENT)' to access field 'System.AccessibilityImprovements.useLegacyAccessibilityFeatures' failed.
at System.Windows.Forms.SafeNativeMethods._TrackMouseEvent(TRACKMOUSEEVENT tme)
at System.Windows.Forms.SafeNativeMethods.TrackMouseEvent(TRACKMOUSEEVENT tme)
at System.Windows.Forms.Control.HookMouseEvent()
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I havew tried lots of things to resolve it but t65o no avail. Things work fine on my 32 bit laptop. I have tried playing with the accessibility settings in the app.conf file but I must be doing something wrong. Could someone please please please help!!
Thanks
Regards
John
这篇关于System.AccessibilityImprovements.useLegacyAccessibilityFeatures错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!