感谢任何指导或建议在跌破发行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 (URLhttps://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.
是构建代理正在运行的帐户在临时服务器上具有本地管理权限? – MisterIsaak
是的。它是一个管理员帐户。 – swapneel