请教各位一个问题,我的程序在本地可以正常获取服务器的硬件信息(CPU,硬盘序号等),但是,一放到服务器上,就提示如下错误信息,无论是winform还是webform均是一样的错误提示。想请问各位,如果需要程序正常运行,需要提供哪些必要的配置,如以administrator登录或者提供其他权限等设置,非常感谢^_^Server Error in '/' Application.
--------------------------------------------------------------------------------
Retrieving the COM class factory for component with CLSID {4590F811-1D3A-11D0-891F-00AA004B2E24} failed due to the following error: 8007007e.
Description: An unhandled exception occurred during the execution of the current web request. 
Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileNotFoundException: Retrieving the COM class factory for component with CLSID {4590F811-1D3A-11D0-891F-00AA004B2E24} failed due to the following error: 8007007e.Source Error: Line 40:         string strCpu = null;
Line 41:         ManagementClass myCpu = new ManagementClass("win32_Processor");
Line 42:         ManagementObjectCollection myCpuConnection = myCpu.GetInstances();
Line 43:         foreach (ManagementObject myObject in myCpuConnection)
Line 44:         { Source File: d:\hz\wwwroot\yuntianair\wwwroot\GetDiskInfo.aspx.cs    
Line: 42Source File: d:\hz\wwwroot\yuntianair\wwwroot\GetDiskInfo.aspx.cs    Line: 42