title: What is expected for DeployIisAppPath setting on MSBuild argument?
body: <pre><code>SERVERNAME(myDomain\Username)
     Application Pools
     Sites
        DEV Site1
        DEV Site2
        dev Site 3
           bin
           Content
           ...
           Views
        etc ...
  </code></pre>
  
  <p>This is my basic layout of our DEV web server. Our DEV web server has many sites running on it. I am trying to use TFS 2013 Build to publish my web site to the DEV server following articles from <a href="http://vishaljoshi.blogspot.com/2010/11/team-build-web-deployment-web-deploy-vs.html" rel="noreferrer">Vishal Joshi</a>, <a href="http://www.iis.net/learn/publish/using-web-deploy/configure-the-web-deployment-handler" rel="noreferrer">Microsoft</a> and others.</p>
  
  <p>My error is "<a href="http://www.iis.net/learn/publish/troubleshooting-web-deploy/web-deploy-error-codes#ERROR_SITE_DOES_NOT_EXIST" rel="noreferrer">ERROR_SITE_DOES_NOT_EXIST</a>". The basic fix does not help me.</p>
  
  <p>In my example, I'm using <code>/p:DeployIisAppPath="dev Site 3"</code>. There are no applications defined under the site. </p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.build.workflow.activities.msbuild.deployiisapppath.aspx" rel="noreferrer">Microsoft's instructions</a> are useless. I thought I should just use the IIS site name, but that is not proving successful. What is the value expected for this parameter? Do I someone need the App Pool name? Is there a command I can issue against IIS to export the list of all the AppPaths available? Once I figure this out on the DEV server, I have to do the same with the STG server.</p>
  
  <p>[UPDATE 1]
  Adding the full MSBuild arguments</p>
  
  <pre><code>/p:DeployOnBuild=True 
  /p:DeployTarget=MsDeployPublish 
  /p:CreatePackageOnPublish=True 
  /p:MSDeployPublishMethod=InProc 
  /p:MSDeployServiceUrl=http://SERVER:PORT/MsDeployAgentService
  /p:DeployIisAppPath="dev Site 3"
  </code></pre>