title: Why is my Web Deployment failing with a time out exception
body: <p>I am trying to set up auto deployment of a website in the build process. I can publish via Visual Studio 2012, but when I try to have TFS build auto deploy I get a timeout error.</p>
  
  <p>Here is my command to the TFS build process:</p>
  
  <pre><code>/p:DeployOnBuild=True /p:DeployTarget=MsDeployPublish /p:CreatePackageOnPublish=True 
  /p:MSDeployPublishMethod=WMSVC /p:MSDeployServiceUrl=http://&lt;MyServer&gt; 
  /p:DeployIisAppPath="InitiationTool" /p:UserName=BGRSDEV\admin /p:Password=&lt;mypassword&gt;
  </code></pre>
  
  <p>Here is the error message:</p>
  
  <pre>
  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
  </pre>
  
  <p>I have tried running the msdeploy.exe dump command and get the same behavior. </p>
  
  <p>This works:</p>
  
  <pre><code>msdeploy.exe -verb:dump -source:iisapp="InitiationTool",computername=http://&lt;MyServer&gt;/MSDEPLOYAGENTSERVICE,username=BGRSDEV\admin,password=&lt;mypassword&gt;
  </code></pre>
  
  <p>This times out:</p>
  
  <pre><code>msdeploy.exe -verb:dump -source:iisapp="InitiationTool",computername="http://&lt;MyServer&gt;:8172/msdeploy.axd?site=InitiationTool",username=BGRSDEV\admin,password=&lt;mypassword&gt;,authType=basic -allowUntrusted
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks</p>