WebDeploy - 只是无法让它工作

时间:2011-08-03 03:17:47

标签: visual-studio iis deployment msdeploy msdeployserviceagent

我在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(我没有找到有关如何形成此网址的正确文档):

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.

确实应该有一个指南来做到这一点(是的,我在脸上用蓝色Google搜索)!

谢谢 - ekkis

1 个答案:

答案 0 :(得分:4)

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

https://192.168.0.70:8172/MsDeploy.axd

并且启用“Windows身份验证”似乎没有任何区别。此外,将我的帐户放在“经理”列表中似乎也没有任何区别。

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