If I create a custom error page in my web.config file, how do I retrieve error details in the error page?
So with ...
<customErrors mode="On" defaultRedirect="/error/error.aspx">
<error statusCode="404" redirect="/error/404.aspx" />
</customErrors>
How can I retrieve an instance of the exception or exception details in my "/error/error.aspx" page? Currently in my error page if I query Server.GetLastError() the return value is null.
Curious.