I'm running a project off Visual Studio 2010 on IISExpress and whenever a 500 error is thrown it sends garbage back to the browser, rather than a properly formatted server error message with the exception details. An email gets sent to me with the Exception details and this returns everything properly, its only when it hits the browser that I get the garbage. To give you an idea of what I mean by garbage, this is what I get.
I have no idea why it returns this to me rather than what I would consider a 'normal' exception message with the stack trace. Custom errors in my project are turned off and like I said, I get the proper exception details from the application in an email sender I have set up, but I get this at the browser end.