简体   繁体   中英

Why Am I getting COMException while trying to connect ServerManager from Microsoft.Web.Administration?

I want to retrieve the list of sites from remote IIS:

using Microsoft.Web.Administration;

ServerManager serverManager = ServerManager.OpenRemote("myserver");

I am getting a COMException

Retrieving the COM class factory for remote component with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} from machine {ip} failed due to the following error: 80040154.

Any tips?

Please, I don't want other approach how to get the information without using Microsoft.Web.Administration

我很怀疑,然后发现此链接 ,这意味着我不能与IIS 6一起使用...我想使用Microsoft.Web.Administration只能用于IIS 7

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM