【问题标题】:WebDeploy - just can't get it to workWebDeploy - 只是无法让它工作
【发布时间】:2011-10-18 18:34:55
【问题描述】:

我已经在运行在 VMWare 下的 Server 2008 R2 上安装了 Web Deploy 2.1。

在 IIS 管理器(管理服务小程序)中,我可以看到“启用远程连接”被选中并且端口设置为 8172。在“IIS 管理器权限”下,我添加了我的 Windows 帐户 (CORP\ekkis) 和在“身份验证”小程序(用于 IIS)下,我启用了“Windows 身份验证”。

我也关闭了防火墙。

所以我从命令行测试系统是这样工作的:

C:\Program Files\IIS\Microsoft Web Deploy V2>msdeploy -verb:dump -source:contentPath=\temp,wmsvc=192.168.0.70,username=CORP\ekkis,password=MyPass,authType=Basic -allowUntrusted=True

然后得到这个:

Info: Using ID '9b954a0f-ff07-4e77-ba2c-d27472f5fda0' for connections to the rem
ote server.
Error Code: ERROR_USER_UNAUTHORIZED
More Information: Connected to the destination computer ("192.168.0.70") using t
he Web Management Service, but could not authorize. Make sure that you are using
 the correct user name and password, that the site you are connecting to exists,
 and that the credentials represent a user who has permissions to access the sit
e.
Error: Object of type 'contentPath' and path '\temp' cannot be created.
Error: The remote server returned an error: (401) Unauthorized.
Error count: 1.

我还尝试使用 Visual Studio 2010 从主机操作系统部署以下服务 url(我还没有找到有关如何形成此 url 的适当文档):

https://192.168.0.70/
https://192.168.0.70:8172/
https://192.168.0.70:8172/MsDeployAgentService/
https://192.168.0.70/MsDeployAgentService/

我也尝试过非安全版本,但无法正常工作。网址的正确格式是什么?我缺少什么权限?

VS 的错误因我的尝试方式而异,但以下是一个示例:

Could not complete the request to remote agent URL 'http://192.168.0.70:8172//MSDEPLOYAGENTSERVICE'.
The underlying connection was closed: An unexpected error occurred on a receive.
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host
Publish failed to deploy.

确实应该有一个指南来做到这一点(是的,我已经用谷歌搜索了自己的脸)!

谢谢 - ekkis

【问题讨论】:

    标签: visual-studio iis deployment msdeploy msdeployserviceagent


    【解决方案1】:

    好的,我发现正确的网址是:

    https://192.168.0.70:8172/MsDeploy.axd
    

    启用“Windows 身份验证”似乎并没有什么不同。此外,将我的帐户列入“经理”列表似乎也没有什么不同。

    所以后端一切正常(我已经关闭了 Web 部署代理服务)。只是我的网址有误。

    【讨论】:

      猜你喜欢
      • 2019-07-17
      • 1970-01-01
      • 2015-09-12
      • 2016-02-24
      • 1970-01-01
      • 2013-09-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多