Microsoft .net框架工作未处理的异常 [英] Microsoft .net frame work Unhandled exception

查看:102
本文介绍了Microsoft .net框架工作未处理的异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在winxp的客户端上运行程序时,我遇到了这个问题.

当我在win7 32bit中运行我的程序时.每件事都是f9,但在winxp程序中会崩溃.


有关调用
的详细信息,请参见此消息的末尾. 即时(JIT)调试,而不是此对话框.

**************异常文本**************

I face this problem when i run my program on client side in winxp i face this problem.

when i run my program in win7 32bit. every thing is f9 but in winxp program will crash.


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

System.Management.ManagementException: Invalid class 
   at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
   at System.Management.ManagementObject.Initialize(Boolean getObject)
   at System.Management.ManagementBaseObject.get_Properties()
   at iTrax.Mods.GetLicenseNumber()
   at iTrax.Mods.ValidActivationCode(String sActivationCode)
   at iTrax.Mods.IsAppActivated()
   at iTrax.Form1.Form1_Load(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at Վ.ᆿ.WndProc(Message& m)
   at Վ.ᆾ.WndProc(Message& m)
   at Վ.ᅱ.WndProc(Message& m)
   at Վ.ᆿ.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)



**************装配体**************
mscorlib
程序集版本:2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
代码库:file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
iTrax
程序集版本:3.0.0.0
Win32版本:3.0.0.0
代码库:file:///C:/Program%20Files/iTrax/iTrax-x86.exe
----------------------------------------
Microsoft.VisualBasic
程序集版本:8.0.0.0
Win32版本:8.0.50727.3053(netfxsp.050727-3000)
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
系统
程序集版本:2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
程序集版本:2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
程序集版本:2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
程序集版本:2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
程序集版本:2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
程序集版本:2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
DevExpress.XtraEditors.v8.2
程序集版本:8.2.2.0
Win32版本:8.2.2.0
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.XtraEditors.v8.2/8.2.2.0__9b171c9fd64da1d1/DevExpress.XtraEditors.v8.2.dll
----------------------------------------
SkinSoft.OSSkin
程序集版本:1.0.0.0
Win32版本:2.1.6
代码库:file:///C:/Program%20Files/iTrax/SkinSoft.OSSkin.DLL
----------------------------------------
DevExpress.Utils.v8.2
程序集版本:8.2.2.0
Win32版本:8.2.2.0
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.Utils.v8.2/8.2.2.0__9b171c9fd64da1d1/DevExpress.Utils.v8.2.dll
----------------------------------------
DevExpress.Data.v8.2
程序集版本:8.2.2.0
Win32版本:8.2.2.0
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.Data.v8.2/8.2.2.0__9b171c9fd64da1d1/DevExpress.Data.v8.2.dll
----------------------------------------
SkinSoft.OSSkin.Licensing
程序集版本:1.0.0.0
Win32版本:2.1.6
代码库:file:///C:/Program%20Files/iTrax/SkinSoft.OSSkin.dll
----------------------------------------
System.Design
程序集版本:2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
System.Data
程序集版本:2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
代码库:file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
程序集版本:2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
代码库:file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
程序集版本:2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
代码库:file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
系统管理
程序集版本:2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
代码库:file:///C:/WINDOWS/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------

************** JIT调试**************
要启用即时(JIT)调试,为此的.config文件
应用程序或计算机(machine.config)必须具有
在system.windows.forms部分中设置的jitDebugging值.
该应用程序还必须使用调试进行编译
已启用.

例如:

< configuration>
< system.windows.forms jitdebugging ="true">


启用JIT调试后,任何未处理的异常
将被发送到计算机上注册的JIT调试器
而不是由此对话框处理.



************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
iTrax
Assembly Version: 3.0.0.0
Win32 Version: 3.0.0.0
CodeBase: file:///C:/Program%20Files/iTrax/iTrax-x86.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
DevExpress.XtraEditors.v8.2
Assembly Version: 8.2.2.0
Win32 Version: 8.2.2.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.XtraEditors.v8.2/8.2.2.0__9b171c9fd64da1d1/DevExpress.XtraEditors.v8.2.dll
----------------------------------------
SkinSoft.OSSkin
Assembly Version: 1.0.0.0
Win32 Version: 2.1.6
CodeBase: file:///C:/Program%20Files/iTrax/SkinSoft.OSSkin.DLL
----------------------------------------
DevExpress.Utils.v8.2
Assembly Version: 8.2.2.0
Win32 Version: 8.2.2.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.Utils.v8.2/8.2.2.0__9b171c9fd64da1d1/DevExpress.Utils.v8.2.dll
----------------------------------------
DevExpress.Data.v8.2
Assembly Version: 8.2.2.0
Win32 Version: 8.2.2.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.Data.v8.2/8.2.2.0__9b171c9fd64da1d1/DevExpress.Data.v8.2.dll
----------------------------------------
SkinSoft.OSSkin.Licensing
Assembly Version: 1.0.0.0
Win32 Version: 2.1.6
CodeBase: file:///C:/Program%20Files/iTrax/SkinSoft.OSSkin.dll
----------------------------------------
System.Design
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Management
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitdebugging="true">


When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

推荐答案

您丢失了一些文件. 转到此处 [ ^ ]
You''re missing some files. Go here [^]


在异常详细信息中给出以下几行:

Given the following lines in the exception details:

at iTrax.Mods.GetLicenseNumber()
at iTrax.Mods.ValidActivationCode(String sActivationCode)



我认为该问题与在用户计算机上运行该组件所需的运行时许可证有关.



I would think that the problem is related to the run-time license required to run that component on user computer.


这篇关于Microsoft .net框架工作未处理的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆