2013-02-01 75 views
0

我想要从远程IIS站点的列表:为什么我在尝试从Microsoft.Web.Administration连接ServerManager时遇到COMException?

using Microsoft.Web.Administration; 

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

我得到一个收到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. 

任何提示吗?

拜托,我不希望其他办法如何获得信息,而无需使用Microsoft.Web.Administration

回答

0

我怀疑后来我发现这Link,这意味着我不能用IIS 6使用的是案例...我想使用使用Microsoft.Web.Administration只适用于IIS 7

相关问题