title: Why is IIS exiting with code 0 whenever I preview in Chrome from Visual Studio?
body: <p>I started on a new <a href="/questions/tagged/asp.net" class="post-tag" title="show questions tagged &#39;asp.net&#39;" rel="tag">asp.net</a> site yesterday with <a href="/questions/tagged/vb.net" class="post-tag" title="show questions tagged &#39;vb.net&#39;" rel="tag">vb.net</a>; I am familiar with VB.NET but not ASP.NET.</p>
  
  <p>My primary browser is Google Chrome, but when I attempt to 'emulate' (debug) the site, the debugger exits the local development server spawned by Visual Studio and as a result, Chrome can never load the website (since when it tries to the webserver isn't running). This can be seen easily by viewing Chrome and Visual Studio side-by-side; Visual Studio's status bar turns orange for a second or so then goes back to blue, and IIS exits with code <code>0</code>:</p>
  
  <pre><code>The program '[73048] iisexpress.exe: Program Trace' has exited with code 0 (0x0).
  The program '[73048] iisexpress.exe' has exited with code 0 (0x0).
  </code></pre>
  
  <p>However this can be temporarily fixed by 'emulating' in Internet Explorer and then with Chrome again, but this fix must be applied on every reboot in order for it to work.</p>
  
  <p>Why is this happening, and how can I properly debug in Chrome without the webserver exiting?</p>
  
  <p>I read <a href="https://stackoverflow.com/questions/19568762/how-can-i-prevent-visual-studio-2013-from-closing-my-iis-express-app-when-i-end">How can I prevent Visual Studio 2013 from closing my IIS Express app when I end debugging?</a> but however none of the solutions helped me in this respect, and that the issue is that Visual Studio seems to be closing <code>iisexpress.exe</code> when the debugging has started.</p>
  
  <p>Chrome runs each tab in a separate process (sandboxing), so perhaps it could be that Visual Studio is expecting Chrome's 'base' PID when Chrome actually spawns an entirely new PID for the new tab created when the 'emulator' starts?</p>
  
  <p>Is there any solution to this other than use Internet Explorer (or the 'fix') for debugging the site?</p>
  
  <p><a href="https://www.youtube.com/watch?v=GQKgpMPg6HM&amp;feature=youtu.be" rel="nofollow noreferrer">I have recorded what's happening here, and I still find it odd that Internet Explorer is able to 'cure' the problem temporarily.</a> </p>
  
  <p>I am using Visual Studio 2013 Ultimate with Windows 8.1 Pro (Media Centre Edition) and Chrome 40.0.2214.93 m.</p>