询问者
Microsoft.NET framework 应用程序中发生了未经处理的异常。如果单击“继续”,应用程序将忽略此错误并尝试继续。如果单击“退出”,应用程序将立即关闭。

问题
-
有关调用实时(JIT)调试而不是此对话框的详细信息,请参见此消息的结尾。
************** 异常文本 **************System.IndexOutOfRangeException: 索引超出了数组界限。在 HkeyTray.EC.get_Fan1()在 HkeyTray.EC.UpdateLiveInfo()在 HkeyTray.EC..ctor()在 HkeyTray.General..ctor()在 HkeyTray.Form1.Form1_Load(Object sender, EventArgs e)在 System.Windows.Forms.Form.OnLoad(EventArgs e)在 System.Windows.Forms.Form.OnCreateControl()在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)在 System.Windows.Forms.Control.CreateControl()在 System.Windows.Forms.Control.WmShowWindow(Message& m)在 System.Windows.Forms.Control.WndProc(Message& m)在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)在 System.Windows.Forms.Form.WmShowWindow(Message& m)在 System.Windows.Forms.Form.WndProc(Message& m)在 HkeyTray.Form1.WndProc(Message& m)在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** 已加载的程序集 **************mscorlib程序集版本:4.0.0.0Win32 版本:4.8.4180.0 built by: NET48REL1LAST_B基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll----------------------------------------HkeyTray程序集版本:1.0.0.9Win32 版本:1.0.0.9基本代码:file:///C:/Program%20Files%20(x86)/Hotkey/Hkeytray.exe----------------------------------------System.Windows.Forms程序集版本:4.0.0.0Win32 版本:4.8.4150.0 built by: NET48REL1LAST_C基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll----------------------------------------System程序集版本:4.0.0.0Win32 版本:4.8.4001.0 built by: NET48REL1LAST_C基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll----------------------------------------System.Drawing程序集版本:4.0.0.0Win32 版本:4.8.3752.0 built by: NET48REL1基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll----------------------------------------System.Management程序集版本:4.0.0.0Win32 版本:4.8.3752.0 built by: NET48REL1基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll----------------------------------------System.Configuration程序集版本:4.0.0.0Win32 版本:4.8.3752.0 built by: NET48REL1基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll----------------------------------------System.Core程序集版本:4.0.0.0Win32 版本:4.8.4180.0 built by: NET48REL1LAST_B基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll----------------------------------------System.Xml程序集版本:4.0.0.0Win32 版本:4.8.3752.0 built by: NET48REL1基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll----------------------------------------WindowsFormsIntegration程序集版本:4.0.0.0Win32 版本:4.8.4150.0 built by: NET48REL1LAST_C基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsFormsIntegration/v4.0_4.0.0.0__31bf3856ad364e35/WindowsFormsIntegration.dll----------------------------------------PresentationCore程序集版本:4.0.0.0Win32 版本:4.8.4180.0 built by: NET48REL1LAST_B基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll----------------------------------------WindowsBase程序集版本:4.0.0.0Win32 版本:4.8.4180.0 built by: NET48REL1LAST_B基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll----------------------------------------PresentationFramework程序集版本:4.0.0.0Win32 版本:4.8.4180.0基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll----------------------------------------System.Xaml程序集版本:4.0.0.0Win32 版本:4.8.4180.0 built by: NET48REL1LAST_B基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll----------------------------------------mscorlib.resources程序集版本:4.0.0.0Win32 版本:4.8.3752.0 built by: NET48REL1基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll----------------------------------------System.Windows.Forms.resources程序集版本:4.0.0.0Win32 版本:4.8.3752.0 built by: NET48REL1基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Windows.Forms.resources.dll----------------------------------------
************** JIT 调试 **************要启用实时(JIT)调试,该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置jitDebugging 值。编译应用程序时还必须启用调试。
例如:
<configuration><system.windows.forms jitDebugging="true" /></configuration>
启用 JIT 调试后,任何未经处理的异常都将被发送到在此计算机上注册的 JIT 调试程序,而不是由此对话框处理。这问题怎么才能解决?
全部回复
-
Hi LuYF1111,
我想询问下你是在什么情况下产生了这个异常,是运行某个程序还是安装.net framework时产生。
另外一般这种情况,建议卸载相关的.NETframework然后再重新安装。
Best Regards,
Jack
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.