感謝任何指導或建議在跌破發行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