Tag: 远程管理

尝试使用ServerManager获取应用程序池时出现COMException

当我尝试使用以下代码从远程服务器获取IIS应用程序池列表时 List appPools; using (ServerManager serverManager = ServerManager.OpenRemote(“XXX”)) { appPools = serverManager.ApplicationPools.ToList(); } 我得到一个例外: System.Runtime.InteropServices.COMException (0x800706BA): Retrieving the COM class factory for remote component with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} from machine XXX failed due to the following error: 800706ba. 可能导致这种情况的任何想法?