2011-08-03 52 views
4

我已经在VMWare下运行的Server 2008 R2上安装了Web Deploy 2.1。WebDeploy - 不能让它工作

在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

回答

4

好吧,我想通了,正确的网址是:

https://192.168.0.70:8172/MsDeploy.axd 

而且具有“Windows身份验证”启用似乎不有所作为。另外,让我的账户在“经理人”名单中也没有什么不同。

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