During one of my applications running I try and find the volume number of the local hard drive using WMI. Here is my code:
ManagementObject disk = new ManagementObject("win32_logicaldisk.deviceid=\"C:\"");
//Error happens here
It only happens on 1 machine running Windows 2000. I can't get it to break any place else.
Just a minor update:
The person that had this happen uninstalled the application, removed the database, and then reinstalled the application and that fixed it. I am not sure why but I guess I can use that as a solution.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?