Thread was being aborted
This exception is throw by the call to Server.Transfer
in order to halt the execution of the current method - exactly the same thing gets thrown if you do Response.Redirect
.
The two choices you have are:
- Catch and rethrow theThreadAbortException / reperform the
Server.Transfer
- Make sure that youonly do
Server.Transfer
in placeswhere it wont be caught (recommended)
EDIT: Scratch that, http://support.microsoft.com/kb/312629 has a couple of other suggestions to try, but I still recommend #2 above.
Another way to solve this, is to catch the generated error and to not rethrow it:
catch (ThreadAbortException) { }
Caling Server.Transfer will call Response.End which always throws a ThreadAbortException. This is a "special" exception because while it can be caught in a catch block, it will always be re thrown at the end of the catch block. I would have your error logging ignore ThreadAbortExceptions.