P
Paul Cheetham
Hi,
I have created a custom error page for my web application (c#, .Net 2)
In this page I am trying to get the details of the error that has
occurred so that I can display it if required.
(Error page defined in Web.config)
I am using the following code:
HttpContext ctx = HttpContext.Current;
Exception ex = ctx.Server.GetLastError();
This always appears to return null for the exception.
How can I get the details of the exception that occurred that caused my
error page to be displayed?
Thankyou.
Paul
I have created a custom error page for my web application (c#, .Net 2)
In this page I am trying to get the details of the error that has
occurred so that I can display it if required.
(Error page defined in Web.config)
I am using the following code:
HttpContext ctx = HttpContext.Current;
Exception ex = ctx.Server.GetLastError();
This always appears to return null for the exception.
How can I get the details of the exception that occurred that caused my
error page to be displayed?
Thankyou.
Paul