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

Error Message: Thread was being aborted.

1 view
Skip to first unread message

DoronF

unread,
Jan 7, 2008, 12:13:58 PM1/7/08
to
Hi All,

I am getting the below error after having a code like this:
Server.Transfer("Thankyou.htm")

I tried this code and the same err.

Server.Transfer("Thankyou_VRep.htm", False)

I am sending an e-mail to a user and then re-direct a page with a thank you
note.

Error Message: Thread was being aborted.
Progam name and line No: at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpServerUtility.Transfer(String path, Boolean
preserveForm)
at Inquiry.SendEmail_Click(Object sender, EventArgs e) in
E:\DEV\NET\SendMail\Inquiry.aspx.vb:line 84

Any idea how to resolve this problem?

Thanks,

Joe


Mark Rae [MVP]

unread,
Jan 7, 2008, 12:41:18 PM1/7/08
to
"DoronF" <NoS...@Hotmail.com> wrote in message
news:u83KrCVU...@TK2MSFTNGP02.phx.gbl...

> Any idea how to resolve this problem?

Two ways:

1) Use Response.Redirect("Thankyou_VRep.htm", False)

2) Use a Try...Catch and simply swallow up the error


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

JoeP

unread,
Jan 7, 2008, 1:09:45 PM1/7/08
to
Thanks for your reply.

I moved the code out of the Try...Catch


Mark Rae [MVP]

unread,
Jan 7, 2008, 1:28:29 PM1/7/08
to
"JoeP" <NoS...@Hotmail.com> wrote in message
news:uLRQ2hVU...@TK2MSFTNGP04.phx.gbl...

> Thanks for your reply.
>
> I moved the code out of the Try...Catch

Er, OK...

Peter Bromberg [C# MVP]

unread,
Jan 7, 2008, 8:02:02 PM1/7/08
to
Multiple personalities. Don't sweat it.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
0 new messages