Seems like a good idea, but I'm all about finding better ways to do things. Pop in a suggestion if you have one...
<customErrors mode ="RemoteOnly" defaultRedirect ="MyErrorPage.aspx" />
protected void Application_Error(Object sender, EventArgs e) {
try {
Exception ex = Server.GetLastError().GetBaseException();
HttpContext.Current.Cache.Insert("LastException", ex);
LogException(ex);
}
catch {}
}