有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。
************** 异常文本 **************
System.Management.ManagementException: 找不到
在 System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
在 System.Management.PropertyData.RefreshPropertyInfo()
在 System.Management.PropertyDataCollection.get_Item(String propertyName)
在 System.Management.ManagementBaseObject.GetPropertyValue(String propertyName)
在 System.Management.ManagementBaseObject.get_Item(String propertyName)
在 BarPrint.Module1.getHardSerial()
在 BarPrint.Module1.getComputerInfo()
在 BarPrint.startup.startup_Load(Object sender, EventArgs e)
在 System.EventHandler.Invoke(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)
在 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)
我通过wmi 调用硬盘序列号,使用函数getHardSerial(),应该是这里错了。因为我引用了system.management,是否是在客户机上不能引用?这个安装程序在我的计算机上安装后没有任何问题。客户机上也有完整的vs2010系统,还是我生成setup时应该在哪里操作一下?.net程序不是一般拷贝一下就行吗?
------解决思路----------------------
是不是操作系统不一样?system.management是和系统相关的,有些老的系统某些命令不支持。