ServerManager.OpenRemote的凭据 [英] Credentials for ServerManager.OpenRemote

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

问题描述

我正在尝试使用ServerManager.OpenRemote(来自Microsoft.Web.Administration),但是无法找到有关如何为它提供与当前用户不同的凭据的文档.我尝试过SimpleImpersonation(来自如何在.NET中进行模拟? ),它给我同样的错误:

I'm trying to use ServerManager.OpenRemote (from Microsoft.Web.Administration) but am unable to find documentation on how to give it different credentials from the current user. I tried SimpleImpersonation (from How do you do Impersonation in .NET?) and it gives me the same error:

System.UnauthorizedAccessException-由于以下错误,从计算机[...]检索具有CLSID {2B72133B-3F5B-4602-8952-803546CE3344}的远程组件的COM类工厂失败.

System.UnauthorizedAccessException - Retrieving the COM class factory for remote component with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} from machine [...] failed due to the following error: 80070005 [...]."

远程计算机上的防火墙已关闭. UAC已禁用.

Firewall on the remote machine is off. UAC is disabled.

推荐答案

您必须启用远程服务器的远程配置. Microsoft.Web.Administration使用AHADMIN DCOM服务,因此应该将其打开以进行远程访问.

You must enable the remote server for remote configuration. Microsoft.Web.Administration uses AHADMIN DCOM service, so this should be open for remote access.

首先,请确保您可以更改AHADMIN属性: https://serverfault.com/questions/242714/how-can-i-enable- ahadmin-properties

First, make sure you can change AHADMIN properties: https://serverfault.com/questions/242714/how-can-i-enable-ahadmin-properties

然后,请按照下列步骤操作或使用提供的脚本: http://mvolo.com/connecting-to-iis -70-configuration-remotely-with-microsoftwebadministration/

Then, follow these steps or use the provided script: http://mvolo.com/connecting-to-iis-70-configuration-remotely-with-microsoftwebadministration/

此外,请检查您是否具有使用dcomcnfg的AHADMIN的远程访问权限.在此处 http://support.microsoft.com/kb/176799 和此处 http://help.eprint.net/dcomconfig.htm

Also, check you have remote access permissions for AHADMIN using dcomcnfg. See how here http://support.microsoft.com/kb/176799 and here http://help.eprint.net/dcomconfig.htm

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

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