Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Thread was being aborted - Response.Redirect

0 views
Skip to first unread message

Ken Teong

unread,
Nov 20, 2002, 12:19:57 PM11/20/02
to
Hi,

I am getting "Thread was being aborted" error at the Response.Redirect
line in my program. I've gone through a few posting on this error
before but could not help much. My Response.Redirect call is within
the Try/Catch block. I've tried added in specific Catch
(ThreadAbortException) as well as using second parameter, i.e.
endResponse set to true, but all can't help.

My ASP.NET application works fine (redirect within Try/catch block)
when connecting to dev oracle database. But once I change the
connectionstring to hit production oracle database, the Redirect error
occurs.

Any idea/help is very much appreciated.

Thanks in advance,
Ken Teong

Phil Winstanley [MVP - ASP.NET]

unread,
Nov 20, 2002, 12:26:21 PM11/20/02
to
Ken,

Can you post the code that is resulting in the problem?

Thanks,

Plip.
--
Phil Winstanley,
Microsoft MVP - ASP.NET.
--

"Ken Teong" <kent...@hotmail.com> wrote in message
news:74b6d3da.02112...@posting.google.com...

Peter O'Reilly

unread,
Nov 20, 2002, 12:22:59 PM11/20/02
to
Ken,

This is well documented in the Microsoft Knowledge base
(http://support.microsoft.com):
"PRB: ThreadAbortException Occurs If You Use Response.End,
Response.Redirect, or Server.Transfer"
http://support.microsoft.com/default.aspx?scid=kb;en-us;312629

The solution that works for me is to catch the ThreadAbortException and do
nothing with it in the catch block. Despite the exception, the Redirect
will still happen.

Hope this helps.
--
Peter O'Reilly


0 new messages