A
A.M
Hi,
I have the following code in Global.asax. Using a breakpoint, i can see that
that all errors are being trapped in Application_Error and the event handler
is being run properly. The problem is still it shows standard ASP.NET error
screen. That means Response.Redirect ("genericerror.htm "); is being
ignored. How can i fix this problem ?
Thanks,
Allan
void Application_Error(Object sender, EventArgs e)
{
Log
(Request.Path,Server.GetLastError().Message,Server.GetLastError().StackTrace
);
Response.Redirect ("genericerror.htm ");
}
I have the following code in Global.asax. Using a breakpoint, i can see that
that all errors are being trapped in Application_Error and the event handler
is being run properly. The problem is still it shows standard ASP.NET error
screen. That means Response.Redirect ("genericerror.htm "); is being
ignored. How can i fix this problem ?
Thanks,
Allan
void Application_Error(Object sender, EventArgs e)
{
Log
(Request.Path,Server.GetLastError().Message,Server.GetLastError().StackTrace
);
Response.Redirect ("genericerror.htm ");
}