Getting “Thread was being aborted” in ASP.NET


I am not sure why this happens and I never explicitly abort threads, so it's a bit of a surprise. But I log Exceptions and I am seeing:

System.Threading.ThreadAbortException – Thread was being aborted.

It appears to happen in a call to System.Threading.WaitHandle.WaitOne. I am not sure how far this Exception goes. I don't think my threads ever terminate, because I catch log and swallow the error.

Why am I getting these errors? Perhaps it's when I am forcefully terminating my server or asking it to reboot? If it isn't then what might be causing them?

Best Solution

Nope, ThreadAbortException is thrown by a simple Response.Redirect