当我尝试使用以下代码从远程服务器获取 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.
有什么想法可能导致这种情况吗?
事实证明,可以通过在防火墙中添加适当的规则来解决该问题:
- 规则类型:入站
- 规则类型:自定义
- 程序:%systemroot%\system32\dllhost.exe
- 协议: TCP
- 本地端口:RPC 动态端口
- 远程端口:所有端口
- 操作:允许连接
- 简介: 域
上述解决方案的灵感来自于这个线程:Windows 防火墙阻止 OAB 连接 http://social.technet.microsoft.com/Forums/exchange/en-US/e8948639-e8f1-4062-946a-6ed67c491d43/windows-firewall-blocking-oab-connections.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)