title: Prevent duplicate site elements being added to applicationHost.config when opening a ASP .Net Web App project
body: <p>I have an ASP .NET Web Application project Visual Studio 2013, which I use for testing purposes only. I'm using pretty much the default project setup:</p>
  
  <ul>
  <li>Running the project starts an IIS Express web service.</li>
  <li>The web application only accepts requests from <code>localhost</code> - other hosts results in a <code>Bad Request - Invalid Hostname</code> response.</li>
  </ul>
  
  <p>I want to be able to send requests and recieve responses from another machine on my LAN. I was able to figure out that that this can be enabled by modified <code>%USERPROFILE%\Documents\IISExpress\config\applicationhost.config</code> file, changing the value of the <code>//configuration/system.applicationHost/sites/site/bindings/binding[@bindingInformation]</code> attribute from <code>*:1728:localhost</code> to <code>*:1728:*</code>.</p>
  
  <p>This works, but there's another annoying problem: Whenever I reopen the project in Visual Studio, a duplicate <code>site</code> element is created in the <code>applicationHost.config</code> file with the old value of <code>*:1728:localhost</code> for the <code>bindingInformation</code> attribute, meaning I have to repeat the above process. Is there a way to get IIS Express/Visual Studio to use the existing, modified <code>site</code> configuration element rather than create a new one? Failing that, is there a way to change the default value for the <code>bindingInformation</code> attribute to <code>*:1728:localhost</code> instead of <code>*:1728:localhost</code>?</p>