2013-07-03 115 views
6

我正嘗試在構建過程中設置網站的自動部署。我可以通過Visual Studio 2012發佈,但是當我嘗試讓TFS構建自動部署時,出現超時錯誤。爲什麼我的Web部署因超時異常而失敗

這裏是我的命令到TFS生成過程:

/p:DeployOnBuild=True /p:DeployTarget=MsDeployPublish /p:CreatePackageOnPublish=True 
/p:MSDeployPublishMethod=WMSVC /p:MSDeployServiceUrl=http://<MyServer> 
/p:DeployIisAppPath="InitiationTool" /p:UserName=BGRSDEV\admin /p:Password=<mypassword> 

以下是錯誤消息:

 
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets (4193): Web deployment task failed. (Could not complete the request to remote agent URL 'http://:8172/msdeploy.axd?site=InitiationTool'.) 

Could not complete the request to remote agent URL 'http://:8172/msdeploy.axd?site=InitiationTool'. The operation has timed out 

我試圖運行msdeploy.exe轉儲命令,並獲得相同的行爲。

這工作:

msdeploy.exe -verb:dump -source:iisapp="InitiationTool",computername=http://<MyServer>/MSDEPLOYAGENTSERVICE,username=BGRSDEV\admin,password=<mypassword> 

此超時:

msdeploy.exe -verb:dump -source:iisapp="InitiationTool",computername="http://<MyServer>:8172/msdeploy.axd?site=InitiationTool",username=BGRSDEV\admin,password=<mypassword>,authType=basic -allowUntrusted 

任何想法?

感謝

回答

12

我找到了答案,但其他地方的情況下,任何人來到這裏,我需要使用https,而不是http。我需要爲不受信任的證書添加標誌。/p:AllowUntrustedCertificate = True

+3

在我的情況是隻是使用https而不是http的問題。 感謝您的提示! – JSancho

+0

使用HTTPS和/ p:AllowUntrustedCertificate = True,仍然看到偶爾的超時。 – dmarlow

相關問題