System.Management.ManagementException was unhandled Message="Provider failure " Source="System.Management" StackTrace: at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() at System.Management.ManagementObjectCollection.get_Count() at Microsoft.VisualBasic.Devices.ComputerInfo.get_OSManagementBaseObject() at Microsoft.VisualBasic.Devices.ComputerInfo.get_OSFullName() at MicroFour.StrataFrame.UI.Windows.Forms.GradientFormHeader..ctor() at MicroFour.StrataFrame.UI.Windows.Forms.GradientFormHeader..ctor(IContainer Container) at MicroFour.StrataFrame.UI.Windows.Forms.WizardControl.InitializeComponent() at MicroFour.StrataFrame.UI.Windows.Forms.WizardControl..ctor() at MicroFour.StrataFrame.Data.ConnectionWizard.InitializeComponent() at MicroFour.StrataFrame.Data.ConnectionWizard..ctor(RequiredDataSourceCollection RequiredItems, Int32 ApplicationPK, Boolean PersistData) at MicroFour.StrataFrame.Data.ConnectionWizard..ctor(RequiredDataSourceCollection RequiredItems, Int32 ApplicationPK) at MicroFour.StrataFrame.Data.ConnectionManager.ShowConnectionWizard(Int32 ApplicationPK) at MicroFour.StrataFrame.Data.ConnectionManager.ShowConnectionWizard() at MicroFour.StrataFrame.Data.ConnectionManager.SetConnections() at ActionLabor.Payroll.Base.AppMain.SetDataSources() in C:\Action Labor Payroll\Payroll\AppMain.vb:line 86 at MicroFour.StrataFrame.Application.StrataFrameApplication.Raise_SetDataSources() at MicroFour.StrataFrame.Application.StrataFrameApplication.RunApplication() at ActionLabor.Payroll.Base.AppMain.Main() in C:\Action Labor Payroll\Payroll\AppMain.vb:line 34 InnerException:
This contains the full name of the OS along with some other things. This is probably an indication that your .NET installation on this client is not up to par or you are missing some standard .NET assemblies.
(or something along those lines )
The method My.Computer.Name works fine in a basic test windows app but my normal app crashes. I can call the method in the line prior to set connections and it fires ok.
MsgBox(
ConnectionManager.SetConnections() crash
I am in and out and dont have much time so maybe tonite i can figure this out.
Please review this link. http://windowsxp.mvps.org/repairwmi.htm
I downloaded the WMI Diagnois Utility and found the problem. I hope that it solves your problem.