How do you access the Source Error, Source File and Line Number of an exception to use in a custom e

Posted by Iain Fraser on Stack Overflow See other posts from Stack Overflow or by Iain Fraser
Published on 2010-06-18T04:43:14Z Indexed on 2010/06/18 4:53 UTC
Read the original article Hit count: 229

Basically I want to take the following: alt text

And make it match the styling of the rest of the application.

I am creating a custom error page in my C# based project and I want it to be able to show the same information that is displayed in the ASP.NET default error page. From fiddling with reflector I can see that this is generated through HttpException.GetHtmlErrorMessage() but when I try to use this in my exception it returns null.

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET