title: How to fix a AutomaticUrlReservationCreationFailureException when using Nancy FX Self Host
body: <p>When using Nancy FX, I came across the following exception which was thrown when trying to fire up a web service: <code>AutomaticUrlReservationCreationFailureException</code></p>
  
  <p>Having looked into it in a bit more detail, I discovered that the way to fix this was to run up a cmd prompt (as an administrator), then run the following command:</p>
  
  <pre><code>netsh http add urlacl url=http://+:1234/ user=DOMAIN\username
  </code></pre>
  
  <p>where</p>
  
  <ul>
  <li><code>DOMAIN\username</code> is the id of the user the service will be run under</li>
  <li><code>1234</code> is the port that the service will be run on</li>
  </ul>
  
  <p>I write this here in case anyone else comes across the same issue and spends a fruitless half hour or so looking for an answer - hopefully they will find this sooner than I did!</p>