当我尝试使用以下代码从远程服务器获取IIS应用程序池的列表时
List<ApplicationPool> 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.
任何想法可能是什么原因造成的?
事实证明,可以通过在防火墙中添加适当的规则来解决该问题:
上面的解决方案受此线程启发:Windows防火墙阻止OAB连接。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句