How to handle ThreadAbortException Without Specifying False for Response.End
<p>I know all about this exception, read the msdn article here <a href="http://support.microsoft.com/kb/312629/EN-US/" rel="nofollow">http://support.microsoft.com/kb/312629/EN-US/</a> but I do not know how to handle this when my boss does not want me to throw in false for the Response.End.</p>

<p>Here's what I have:</p>

<pre><code>        else 
        {
 try
 {
  VoidlOrder(transactionID);
 }
 catch (Exception ex)
 {
  LogError(ex.ToString());
 }
 finally
 {
     RedirectUser(sessionID,"showfmsg=1", true);
 }
        }
</code></pre>

<p>RedirectUser is just a utility method we run that ultimately passes in true for the reponse.redirect resopnse.end param.</p>

<p>So what other option is there other than putting false as this param?  He's stating to catch it and do something...ok do what? I don't see any other fix than to send false into this call every time because I can't get pass this exception..I get it every time.</p>

<p>UPDATED</p>

<p>tried this but I still get a threadabortexception in the outer catch:</p>

<pre><code>          else 
        {
                try
                {

                    VoidOrder(transactionID);
                }
                catch (Exception ex)
                {
                    LogError(ex.ToString());
                }
                finally
                {
                    try
                    {
                    RedirectUserBackToCheckout(sessionID, "showfmsg=1", true);
                    }
                    catch (ThreadAbortException)
                    {

                    }

                }
        }
    }
    catch (Exception ex)
    {
        // some other logic
    }
</code></pre>
