【问题标题】:Permissions necessary to web deploy to IIS siteWeb 部署到 IIS 站点所需的权限
【发布时间】:2014-10-15 21:01:46
【问题描述】:

用户需要哪些权限才能使用 Web 部署到在不同服务器上运行的 IIS?

当我尝试使用该用户凭据从 VS 2010 进行部署时,我收到以下错误。

Error   36  Web deployment task failed.(Remote agent (URL https://server:8172/msdeploy.axd?site=site.name.com) could not be contacted.  Make sure the remote agent service is installed and started on the target computer.)
Make sure the site name, user name, and password are correct. If the issue is not resolved, please contact your local or server administrator.
Error details:
Remote agent (URL https://server:8172/msdeploy.axd?site=site.name.com) could not be contacted.  Make sure the remote agent service is installed and started on the target computer.
An unsupported response was received. The response header 'MSDeploy.Response' was '' but 'v1' was expected.
The remote server returned an error: (401) Unauthorized.    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets

当我将我的域帐户(例如域\用户)与以下发布参数一起使用时,我可以使用 Web 部署。

我的域帐户是目标服务器上的管理员,但不能授予服务帐户完整的管理员权限。

【问题讨论】:

    标签: asp.net visual-studio-2010 iis microsoft-web-deploy


    【解决方案1】:

    用户必须具有以下权限。

    • 网站文件夹目录的读/写权限
    • WDeployConfigWriter 和 WDeployAdmin 必须配置为使其密码永不过期,并且用户无法更改密码,如下图所示
    • 应在 IIS 管理器用户下启用运行构建的帐户
    • 运行构建的帐户必须具有 IIS 管理器权限下的站点权限
    • 配置管理服务
    • 如下配置管理服务委派

    Useful reference

    Web Deploy 3.0 infuriating 401 error on publish

    运行帐户的用户应该是高级用户,并且必须对运行目标 iis 站点的文件夹具有完全控制权限。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-01-09
      • 1970-01-01
      • 2020-10-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多