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
任何想法?
感謝
在我的情況是隻是使用https而不是http的問題。 感謝您的提示! – JSancho
使用HTTPS和/ p:AllowUntrustedCertificate = True,仍然看到偶爾的超時。 – dmarlow