请教各位一个问题,我的程序在本地可以正常获取服务器的硬件信息(CPU,硬盘序号等),但是,一放到服务器上,就提示如下错误信息,无论是winform还是webform均是一样的错误提示。想请问各位,如果需要程序正常运行,需要提供哪些必要的配置,如以administrator登录或者提供其他权限等设置,非常感谢^_^
Server Errorin'/'Application.--------------------------------------------------------------------------------Retrieving the COMclassfactoryforcomponent 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 traceformore information about the error andwhereit originatedinthe code.
Exception Details: System.IO.FileNotFoundException: Retrieving the COMclassfactoryforcomponent with CLSID {4590F811-1D3A-11D0-891F-00AA004B2E24} failed due to the following error: 8007007e.
Source Error:
Line40:stringstrCpu=null;
Line41: ManagementClass myCpu=newManagementClass("win32_Processor");
Line42: ManagementObjectCollection myCpuConnection=myCpu.GetInstances();
Line43:foreach(ManagementObject myObjectinmyCpuConnection)
Line44: {
Source File:d:\hz\wwwroot\yuntianair\wwwroot\GetDiskInfo.aspx.csLine:42