我已经在 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.
我还尝试使用以下服务 url 从主机操作系统使用 Visual Studio 2010 进行部署(我还没有找到有关如何形成此 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