I have asp.net application has the below code when the exception is thrown
throw new ApplicationException("", ex);
But when exception occurs. In the debug mode Application throws it in the webpage itself.
But when in the release mode it throws it in the Event Viewer. And page is empty.