G
Guest
Hi!
If I do the following in VS2003 it works - and in VS2005 it complains about
a DisconnectedContext...
using (ManagementClass mcDiskDrive = new ManagementClass(@"Win32_Diskdrive"))
{
// mcDiskDrive.GetInstances() is thowing the exception
foreach (ManagementObject moDiskDrive in mcDiskDrive.GetInstances())
{
}
}
Does anyone know what might go wrong?
Thanks
Ralf
If I do the following in VS2003 it works - and in VS2005 it complains about
a DisconnectedContext...
using (ManagementClass mcDiskDrive = new ManagementClass(@"Win32_Diskdrive"))
{
// mcDiskDrive.GetInstances() is thowing the exception
foreach (ManagementObject moDiskDrive in mcDiskDrive.GetInstances())
{
}
}
Does anyone know what might go wrong?
Thanks
Ralf