title: VS 2012 can't load project which uses IIS with custom binding host - thinks it's using IIS Express
body: <p>I have an ASP.NET project which uses IIS. IIS site is configured to use custom binding host name. Project file contains following settings:</p>
  
  <pre><code>...
  &lt;UseIISExpress&gt;false&lt;/UseIISExpress&gt;
  ...
  &lt;ProjectExtensions&gt;
    &lt;VisualStudio&gt;
      &lt;FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"&gt;
        &lt;WebProjectProperties&gt;
          &lt;UseIIS&gt;True&lt;/UseIIS&gt;
          &lt;AutoAssignPort&gt;False&lt;/AutoAssignPort&gt;
          &lt;DevelopmentServerPort&gt;8662&lt;/DevelopmentServerPort&gt;
          &lt;DevelopmentServerVPath&gt;/&lt;/DevelopmentServerVPath&gt;
          &lt;IISUrl&gt;http://custom.host.name/&lt;/IISUrl&gt;
          &lt;NTLMAuthentication&gt;False&lt;/NTLMAuthentication&gt;
          &lt;UseCustomServer&gt;False&lt;/UseCustomServer&gt;
          &lt;CustomServerUrl&gt;&lt;/CustomServerUrl&gt;
          &lt;SaveServerSettingsInUserFile&gt;False&lt;/SaveServerSettingsInUserFile&gt;
        &lt;/WebProjectProperties&gt;
      &lt;/FlavorProperties&gt;
    &lt;/VisualStudio&gt;
  &lt;/ProjectExtensions&gt;
  ...
  </code></pre>
  
  <p>When project is configured in such a way, I can access the site from <code>http://custom.host.name/</code> and VS automatically attaches to IIS worker process when debugging.</p>
  
  <p>When I reload project (either by closing/reopening solution or by unload/reload in project context menu), something unexpected happens. Project fails to load, <code>(load failed)</code> is displayed to the right of project name in solution explorer and message box is shown with  the following message (it's also displayed in the Output window):</p>
  
  <pre><code>The URL 'http://custom.host.name/' for Web project 'Some.Asp.Net.Project' 
  is configured to use IIS Express as the web server but the URL is currently
  configured on the local IIS web server. To open this project, you must use
  IIS Manager to remove the bindings using this URL from the local IIS web server.
  </code></pre>
  
  <p>I have tried removing project site configuration from IIS Express <code>applicationhost.config</code> file, but it didn't help.</p>
  
  <p>I don't encounter this problem when mapping project to IIS Application under default site.</p>
  
  <p>VS version is Ultimate 2012 Update 3.</p>