Alternatively, if you e-mail the contents of Server.GetLastError().GetBaseException().GetHtmlErrorMessage() you can see the exact message and line numbers the user would normally see (of course, I'd still recommend a redirect to an error page, and only send the details to admin)...