title: Can a .net web application pass uncaught exception messages to browser in plain text?
body: <p>I'm debugging. on an ASP.net MVC 4 web application.</p>
  
  <p>There are a number of JsonResult Controller Actions in the application.  In the event of an error, the system returns the text of the error and the stacktrace with HTML markup.  This is convenient when the error occurs on a ViewResult Controller Action, but it makes it difficult to read error messages for JsonResult Controller Actions, as I usually see the text of the error message in a debugger, if at all.</p>
  
  <p>Is there a practical way to make the JsonResult Controller Action return its error message to the browser in plain text?</p>