title: How do you specify the deployIisAppPath to a site root that is not DefaultWebSite?
body: <p>I have a ASP.NET MVC web application project that I want to deploy to my IIS webserver.  The site tree is set up thusly:</p>
  
  <pre><code>SERVERNAME(myDomain\Username)
     Application Pools
     Sites
        Default Web Site
        MyProjectSite
           bin
           Content
           ...
           Views
  </code></pre>
  
  <p>I am trying to deploy to the MyProject site.  See below settings that I am using versus the errors I am returning.  I am apparently not specifying my site path correctly, but for the life of me, I can't figure out what it should be.</p>
  
  <p>The following settings stay the same between iterations:</p>
  
  <p><code>/p:DeployOnBuild=True /p:DeployTarget=MsDeployPublish /p:CreatePackageOnPublish=False /p:MSDeployPublishMethod=WMSvc /p:AuthType=Basic /p:Username="myUserName" /p:Password="MyPassword" /p:AllowUntrustedCertificate=True</code></p>
  
  <h1>Specify SiteName/ as IISAppPath:</h1>
  
  <h2>Parameters:</h2>
  
  <p><code>/p:MsDeployServiceUrl="https://serverName:8172/MsDeploy.axd?Site=MyProjectSite" /p:DeployIisAppPath="MyProjectSite/"</code></p>
  
  <h2>Error:</h2>
  
  <p><code>Could not complete an operation with the specified provider ("createApp") when connecting using the Web Management Service</code> - I don't want to create a new site.  I want to sync the content that is already there.</p>
  
  <h1>Specify IISAppPath as Root (supposing that the sitename in the URL is used)</h1>
  
  <h2>Parameters:</h2>
  
  <p><code>/p:MsDeployServiceUrl="https://serverName:8172/MsDeploy.axd?Site=MyProjectSite" /p:DeployIisAppPath="/"</code></p>
  
  <h2>Error:</h2>
  
  <p><code>Could not complete an operation with the specified provider ("iisApp") when connecting using the Web Management Service</code> - Looks like it is trying to access the Default WebSite or something (to which I have purposefully NOT given myself rights).</p>
  
  <h1>Specify IISAppPath as empty string(supposing that the sitename in the URL is used)</h1>
  
  <h2>Parameters:</h2>
  
  <p><code>/p:MsDeployServiceUrl="https://serverName:8172/MsDeploy.axd?Site=MyProjectSite" /p:DeployIisAppPath=""</code></p>
  
  <h2>Error:</h2>
  
  <p><code>The "ConcatFullServiceUrlWithSiteName" task was not given a value for the required parameter "SiteAppName"</code> - So it interprets "" as actually a null value thus breaking an attempt to concatenate it.</p>
  
  <h1>Specify no site attribute in the URL but SiteName/ as IISAppPath</h1>
  
  <h2>Parameters:</h2>
  
  <p><code>/p:MsDeployServiceUrl="https://serverName:8172/MsDeploy.axd" /p:DeployIisAppPath="MyProjectSite/"</code></p>
  
  <h2>Error:</h2>
  
  <p><code>Could not complete an operation with the specified provider ("createApp") when connecting using the Web Management Service</code></p>
  
  <h1>Specify no site attribute in URL but SiteName as IISAppPath</h1>
  
  <h2>Parameters:</h2>
  
  <p><code>/p:MsDeployServiceUrl="https://serverName:8172/MsDeploy.axd" /p:DeployIisAppPath="MyProjectSite"</code></p>
  
  <h2>Error:</h2>
  
  <p><code>Could not complete an operation with the specified provider ("createApp") when connecting using the Web Management Service</code></p>
  
  <p>Now given that it is running a concatenate on the SiteAppName, it must be combining it with the Site name, yes? What are you supposed to put there to get the site to sync to the root of a site?</p>
  
  <h1>Update</h1>
  
  <p>In an attempt to figure out the proper path scheme, I have tried to publish using the Visual Studio 2012 Publish dialog.  In this case, I am returned an error saying that The request timed out (testing the connection works almost instantly and previewing the changes works but takes a few seconds).  I checked the event log, and the tracelog for wmsvc to no avail.  Even with trace set to verbose, nothing shows up in the tracelog.  I have tried disabling the firewalls on both computers, and nothing seems to work on that front either.</p>