Since the <customErrors> causes a redirect, the error page is a new request
into the web server, thus the previous request that caused the failure is
long gone. You need to put an Application_Error event handler in global.asax
to capture error information; this event gets called during the request that
is failing. You can then log the error information (accessibly from Context.Error).
-Brock
DevelopMentor
http://staff.develop.com/ballen Hi,
I use the setting below in Web.config
<customErrors mode="On"
defaultRedirect="~/ErrorPage/GenericErrorPage.aspx"
/>
How could we get error statusCode when GenericErrorPage is load?