title: TFS build definition not deploying mvc application to IIS
body: <p>I am attempting to use Visual Studio's Team Explorer and TFS to create a Build Definition to deploy a MVC site to IIS.</p>
  
  <p>I followed the Pluralsight tutorial called 'Continuous Deployment with Team Foundation Server 2010'.</p>
  
  <p>The steps I followed from the tutorial included:</p>
  
  <ul>
  <li>Installed IIS Management Scripts and Tools</li>
  <li>Installed Management Service</li>
  <li>On the Management Service I allowed remote connections and enable Windows Credentials Only</li>
  <li>Installed Web Deploy</li>
  <li>Created a deployment domain account</li>
  <li>Allowed domain account permissions to modify IIS file system</li>
  <li>Set delegation rules using this domain account</li>
  <li>Set IIS Permissions using domain account</li>
  </ul>
  
  <p>The MSBuild arguements I set in the build definition were:</p>
  
  <pre><code>/p:DeployOnBuild=true 
  /p:DeployTarget=MSDeployPublish 
  /p:CreatePackageOnPublish=False 
  /p:MSDeployPublishMethod=WMSVC 
  /p:SkipExtraFilesOnServer=True 
  /p:AllowUntrustedCertificate=True 
  /p:MSDeployServiceUrl="https://&lt;iis server name&gt;:8172/msdeploy.axd"
  /p:Username="&lt;domain&gt;\&lt;user&gt;" 
  /p:Password="&lt;password&gt;" 
  /p:DeployIISAppPath="Default Web Site/&lt;site name&gt;"
  </code></pre>
  
  <p>I queued a build and it passes, is written to the drop folder but NOT to IIS.</p>
  
  <p>I published the MVC application from the Solution Explorer using the same property values and it was successfully deployed to IIS.</p>
  
  <p>Does anyone know what I am missing?</p>