问题描述
Seetheendofthismessagefordetailsoninvokingjust-in-time(JIT)debugginginsteadofthisdialogbox.**************ExceptionText**************System.Management.ManagementException:提供程序加载失败atSystem.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatuserrorCode)atSystem.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()atWinning.FrameWork.Core.Library.Utils.ComputerUtils.get_NetAddress()atWinning.FrameWork.Core.Login.Reg.HisUser.set_IsLogin(Booleanvalue)atWinning.FrameWork.UI.Login.FormLogin.BtnLogin_Click_1(Objectsender,EventArgse)atSystem.Windows.Forms.Control.OnClick(EventArgse)atDevExpress.XtraEditors.BaseButton.OnClick(EventArgse)atDevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgse)atSystem.Windows.Forms.Control.WmMouseUp(Message&m,MouseButtonsbutton,Int32clicks)atSystem.Windows.Forms.Control.WndProc(Message&m)atDevExpress.Utils.Controls.ControlBase.WndProc(Message&m)atDevExpress.XtraEditors.BaseControl.WndProc(Message&msg)atSystem.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&m)atSystem.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&m)atSystem.Windows.Forms.NativeWindow.Callback(IntPtrhWnd,Int32msg,IntPtrwparam,IntPtrlparam)
解决方案
解决方案二:
加断点调试~~~
解决方案三:
看不出来什么问题,需要更详细的信息自己试着调试吧,一步步跟进
解决方案四:
程序加载出错,肯定是你写的代码报错了,设断点调试下,或者加日志看下
解决方案五:
是这个函数错误了吧get_NetAddress(),查下是否空值了