title: OWIN WebApp.Start gives A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
body: <p>In my code i have this:</p>
  
  <blockquote>
  <pre><code>        HOST = "*";
          PORT = 9000;
  </code></pre>
  </blockquote>
  
  <pre><code>        baseAddress = "http://" + HOST + ":" + PORT + "/";
  
          // Start OWIN host. Should be called in TT extension code
          WebApp.Start&lt;Startup&gt;(url: baseAddress);
  </code></pre>
  
  <p>which is leading to:</p>
  
  <p>A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
  An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
  Additional information: Exception has been thrown by the target of an invocation.</p>
  
  <p>Online I have found a possible solution by typing in CMD run  as Admin:</p>
  
  <blockquote>
    <p><code>netsh http add urlacl url=http://+:9000/ user=Everyone</code></p>
  </blockquote>
  
  <p>but this has not resolved the issue. Can anyone help?</p>