使用ServerManager.OpenRemote远程连接到IIS7 [英] Remote Connection to IIS7 using ServerManager.OpenRemote

查看:312
本文介绍了使用ServerManager.OpenRemote远程连接到IIS7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用ServerManager.OpenRemote([IP Address])连接到IIS7 +。我正在从HyperV主机连接到其客户端虚拟机。我不断收到以下错误:'System.Runtime.InteropServices.COMException:RPC服务器不可用。 (来自HRESULT的异常:0x800706BA)'。我可以使用通过管理服务(客户端)连接的IIS管理器(服务器)连接到客户端的IIS。由于我无法使用服务器管理器进行连接,我猜测管理服务使用HTTP而ServerManager使用COM进行连接。有人可以指导我如何允许这种远程连接吗?

I am trying to connect to IIS7+ using ServerManager.OpenRemote("[IP Address]"). I am connecting from a HyperV Host Machine to its client virtual machines. I keep getting the following error: 'System.Runtime.InteropServices.COMException: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)'. I can connect to the the client's IIS using the IIS Manager (server) connecting through the Management Service (client). Since I am unable to connect using Server Manager, I am guessing that the management service uses HTTP and ServerManager uses COM to connect. Can someone steer me in the right direction as to how I would allow this remote connection?

编辑:我已经使用netmon验证了2台计算机之间的DCOM通信。我对客户端机器DCOM:RemoteGetClassObject Request和DCOM:RemoteGetClassObject Response进行了以下描述。响应在描述中也有ORPCFNULL,它向我指示客户端无法找到所请求的COM对象。任何人都可以验证吗?

I have verified DCOM communication between the 2 computers using netmon. I have the following descriptions to/from the client machine "DCOM:RemoteGetClassObject Request" and "DCOM:RemoteGetClassObject Response". The response also has "ORPCFNULL" in the description which indicates to me that the client cannot find the requested COM object. Can anybody verify?

推荐答案

我找到了我的解决方案。添加了备注以帮助他人。

I found my solution. Added notes to help others.

默认情况下,Windows防火墙阻止端口135(用于握手此连接)。一旦我打开这个端口,我仍然遇到问题。

By default, Windows firewall blocks port 135 (used for handshaking this connection). Once I opened up this port, I was still getting issues.

握手后,1024-65535之间的动态端口用于通信。如果不允许,Windows防火墙也会阻止它。

After the handshake, a dynamic port between 1024-65535 is used for communication. Windows firewall will block this also if not allowed.

因为我的操作纯粹是内部的,所以我为该端口范围的所有10.1.10.0/24 IP创建了一个允许规则。

Because my operations were purely internal, I created an allow rule for all 10.1.10.0/24 IPs for that port range.

您还可以将此DCOM配置为具有您选择的静态端口,并为该端口设置防火墙规则。

You can also configure this DCOM to have a static port of your choosing and set a firewall rule for that port.

此处有更多信息: http://mvolo.com / connect-to-iis-70-configuration-remote-with-microsoftwebadministration /

这篇关于使用ServerManager.OpenRemote远程连接到IIS7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆