How to handle ThreadAbortException Without Specifying False for Response.End
- by coffeeaddict
I know all about this exception, read the msdn article here http://support.microsoft.com/kb/312629/EN-US/ but I do not know how to handle this when my boss does not want me to throw in false for the Response.End.
Here's what I have:
else
{
try
{
VoidlOrder(transactionID);
}
catch (Exception ex)
{
LogError(ex.ToString());
}
finally
{
RedirectUser(sessionID,"showfmsg=1", true);
}
}
RedirectUser is just a utility method we run that ultimately passes in true for the reponse.redirect resopnse.end param.
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.