Hi pals,
I'm working with VS 2005 (VB.NET 2005) And my OS is Windows 2000 server.
I wanted to know the Full name of my OS .When i'm trying to get the value of
My.Computer.Info.OSFullName I'am getting Invalid Namespace Exception and the stack trace tell the following:
at System.Management.ThreadDispatch.Start()
at System.Management.ManagementScope.Initialize()
at System.Management.ManagementObjectSearcher.Initialize()
at System.Management.ManagementObjectSearcher.Get()
at Microsoft.VisualBasic.Devices.ComputerInfo.get_OSManagementBaseObject()
at Microsoft.VisualBasic.Devices.ComputerInfo.get_OSFullName()
at WindowsApplication1.Form1.Button1_Click(Object sender, EventArgs e)
Anybody please revert back.

Invalid Namespace Exception with My.Computer.Info.OSFullName
OldDaemon
Hi David,
Thanks For writing in.
The exception Message says "Invalid Namespace"
The exception is of System.Management Type.
And to my dismay,the same code is working fine in WIndows Xp And not in Windows server 2000 (based on NT)
And the other values like My.Computer.Info.OSPlatform is working fine with windows 2000 .
I cann't understand where i'm wrong
BilalShahzad
Can you provide more information about the exception
What is the type of the exception What is the exact message of the exception
L. Gordon Curtis
Sorry for the late reply.
Can you head over to Microsoft Connect and file a bug with a project that reproduces it