ManagementObject not recognized in asp.net app
Posted on 2011-02-14
I'm trying to use the ManagementObject object to get information about my servers hard drive. I added the namespace using System.Management; But it still errors saying:
Error 11 The type or namespace name 'ManagementObject' could not be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\Administrator\Desktop\SH_Source\Admin_Pages\Home.aspx.cs 92 1 C:\...\SH_Source\
It almost seems like my .NET framework doesn't include it, but it should I'd think. Any ideas?