2012-11-07 109 views
1

感谢任何指导或建议在跌破发行TFS2010的MSBuild msdeploy未经授权错误

我使用TFS2010及以下的MSBuild参数,以便在临时服务器(连续部署)部署版本。我已经做了所有necessery配置,如

Management Service Delegation

Management Service

Filesystem Permission

IIS Manager Permission

的MSBuild参数

/p:validatearchitecture=true /p:AllowUntrustedCertificate=True /p:DeployOnbuild=True 
/p:DeployTarget=MsDeployPublish /p:MSDeployPublishMethod=WMSVC 
/p:MsDeployServiceUrl=stagingserver 
/p:DeployIISAppPath="cddemo" /p:UserName=username /p:Password=password 
/p:Outdir="D:\Demo\Demo\\" 

具有低于错误。如何解决它?以及如何从链接中删除https并使用详细参数查看详细错误。

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0 \Web\Microsoft.Web.Publishing.targets (3588): Web deployment task failed.(Remote agent (URL https://stagingserver:8172/msdeploy.axd?site=cddemo) could not be contacted. Make sure the remote agent service is installed and started on the target computer.) Make sure the site name, user name, and password are correct. If the issue is not resolved, please contact your local or server administrator. Error details: Remote agent (URL https://stagingserver:8172/msdeploy.axd?site=cddemo) could not be contacted. Make sure the remote agent service is installed and started on the target computer. An unsupported response was received. The response header 'MSDeploy.Response' was '' but 'v1' was expected. The remote server returned an error: (401) Unauthorized.

+0

是构建代理正在运行的帐户在临时服务器上具有本地管理权限? – MisterIsaak

+0

是的。它是一个管理员帐户。 – swapneel

回答

3

我只能想两件事情尝试:

  1. 与服务器/域名验证您的用户名:/p:UserName:Server\Username
  2. 尝试明确定义/p:AuthType=Basic/p:AuthType:NTLM
+0

会尝试。如何从genreated https链接中删除“s”只需要http?什么是详细参数来查看详细的错误,即堆栈跟踪 – swapneel

+0

我不相信你可以,但是你的'AllowUntrustedCertificate'参数应该排除这个问题。 –