【发布时间】: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