G
Guest
I have written a custom exception handler to process exceptions (send email,
write to db).
My code looks like such in the Global.asax Application_OnError event
Exception ex = Server.GetLastError().GetBaseException();
Server.ClearError( );
AppException err = new AppException();
err.ProcessException(ex,
System.Configuration.ConfigurationSettings.AppSettings["dbconnectionstring"]);
int errID = err.EventID;
Response.Redirect("~/custom_err_page.aspx?evtID=" + errID);
When there is like a syntax issue in the page it will just loop for infinity
sending me tons of emails. A good example is a user control I have for the
application header. If I remove a semicolon it will send emails until my
inbox explodes. If it is a access denied on a stored procedure it sends one
email.
Why is it that the Application_OnError method just loops when it encounters
an error such as page level error?
Anyone have any suggestions. Web.Config is not an option for I have to be
able to get the error details from Server.GetLastError();
Thanks
write to db).
My code looks like such in the Global.asax Application_OnError event
Exception ex = Server.GetLastError().GetBaseException();
Server.ClearError( );
AppException err = new AppException();
err.ProcessException(ex,
System.Configuration.ConfigurationSettings.AppSettings["dbconnectionstring"]);
int errID = err.EventID;
Response.Redirect("~/custom_err_page.aspx?evtID=" + errID);
When there is like a syntax issue in the page it will just loop for infinity
sending me tons of emails. A good example is a user control I have for the
application header. If I remove a semicolon it will send emails until my
inbox explodes. If it is a access denied on a stored procedure it sends one
email.
Why is it that the Application_OnError method just loops when it encounters
an error such as page level error?
Anyone have any suggestions. Web.Config is not an option for I have to be
able to get the error details from Server.GetLastError();
Thanks