A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll
An exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but was not handled in user code
You get this error when you try to redirect to another page while the code is being run within a try/catch block on the current page. The solution is to set the endresponse to false like this:
Response.Redirect("~\\yourPage.aspx", false);
instead of
Response.Redirect("~\\yourPage.aspx");
Although i still need to figure out why it happens, any idea?