2012-11-07 131 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'參數應該排除這個問題。 –