markknowsley
Programmer
This is going to be Exception Handling 101 so apologies; I've used the Try - Catch - Finally in C# to catch any errors in my code.
I've set the program to email me when an error occurs; the statement is:
catch (Exception E)
{
string stringError = E.ToString();
SendErrorMail(variables);
Server.Transfer("Error.aspx");
}
Which is working. But I get emailed about this error:
System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpResponse.Redirect(String url, Boolean endResponse)
at System.Web.HttpResponse.Redirect(String url)
but it's not really an error - the code keeps going and (provided that nothing else has gone wrong) concludes successfully.
Is there something that I need to do about this thread exception? Will it cause problems?
I've set the program to email me when an error occurs; the statement is:
catch (Exception E)
{
string stringError = E.ToString();
SendErrorMail(variables);
Server.Transfer("Error.aspx");
}
Which is working. But I get emailed about this error:
System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpResponse.Redirect(String url, Boolean endResponse)
at System.Web.HttpResponse.Redirect(String url)
but it's not really an error - the code keeps going and (provided that nothing else has gone wrong) concludes successfully.
Is there something that I need to do about this thread exception? Will it cause problems?