That's not the issue. The redirect is not working. The debugger is showing me that it goes through the line of code to redirect, but it never happens even if I make my Application_Error as simple as:
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
Server.Transfer("test.htm"
End Sub
Replace Server.Transfer with Response.Redirect, add a Server.ClearError (before or after it), etc...none of that works.
I want to know how to allow the redirect/transfer to be called. It does execute the code because if I put an event logger in there, it writes to the log. It just does not want to get redirected for some reason.
Main Topics
Browse All Topics





by: raterusPosted on 2007-01-23 at 12:21:33ID: 18378668
Have you tried a try/catch block in Application_Error that catches the exact exception being raised, which hopefully then you can Response.Redirect to a custom error page?