I had this error Thread was being aborted., this afternoon in my error log.
The code that caused this error is:
Response.Redirect(\"
I catch this exception and swallow it because ASP.NET is using exceptions for flow control rather than for an exceptional circumstance.
try
{
// Do stuff.
}
catch(ThreadAbortException)
{
// Do nothing. ASP.NET is redirecting.
// Always comment this so other developers know why the exception
// is being swallowed.
}
catch(OtherExceptionTypes ex)
{
// Log other types of exception.
}