Error Message: Thread was being aborted.

Error Message: Thread was being aborted.

am 07.01.2008 18:13:58 von Adrian

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

Re: Error Message: Thread was being aborted.

am 07.01.2008 18:41:18 von mark

"DoronF" wrote in message
news:u83KrCVUIHA.1164@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

Re: Error Message: Thread was being aborted.

am 07.01.2008 19:09:45 von Adrian

Thanks for your reply.

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

Re: Error Message: Thread was being aborted.

am 07.01.2008 19:28:29 von mark

"JoeP" wrote in message
news:uLRQ2hVUIHA.5288@TK2MSFTNGP04.phx.gbl...

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

Er, OK...


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

Re: Error Message: Thread was being aborted.

am 08.01.2008 02:02:02 von pbromberg

Multiple personalities. Don't sweat it.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com


"Mark Rae [MVP]" wrote:

> "JoeP" wrote in message
> news:uLRQ2hVUIHA.5288@TK2MSFTNGP04.phx.gbl...
>
> > Thanks for your reply.
> >
> > I moved the code out of the Try...Catch
>
> Er, OK...
>
>
> --
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net
>
>