title: Errors in Razor pages cause server to hang
body: <p>I've been writing an app using the awesome new Razor view engine and for the most part, things have been great.</p>
  
  <p>One issue I keep running into, however, is that if I should happen to write invalid code, such as referencing a <code>null</code> property or even a non existent property, rather than throwing an error, something happens in the background that causes the browser to wait and wait and wait and if I do not cancel the browser's request quick enough, IIS will simply hang.</p>
  
  <p>It seems as if it enters some sort of loop.  CPU usage goes up (though not terribly high) and restarting IIS via either GUI or <code>iisreset</code> command seems to take abnormally long (presumably while it waits for the process to safely shutdown).</p>
  
  <p>This also happens for other invalid code scenarios such as failing to close a code block with a closing brace.</p>
  
  <p>I notice this behavior on more than one machine.</p>
  
  <p>Any ideas if this is a known issue or have I mis configured something?</p>
  
  <p>Thanks!</p>