473,387 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Error Message: Thread was being aborted.

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
Jan 7 '08 #1
4 2536
"DoronF" <No****@Hotmail.comwrote in message
news:u8**************@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

Jan 7 '08 #2
Thanks for your reply.

I moved the code out of the Try...Catch
Jan 7 '08 #3
"JoeP" <No****@Hotmail.comwrote in message
news:uL**************@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

Jan 7 '08 #4
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" <No****@Hotmail.comwrote in message
news:uL**************@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

Jan 8 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: karunakar | last post by:
Hi all I have a page where I am trying to do a Response.Redirect and I get the next error message: 'Thread was being aborted' How can I solve this problem? Thanks in advance Karunakara Rao.
1
by: Elliot M. Rodriguez | last post by:
A few of our customers cannot access one of the pages on our vb.net asp.net site. The problems are limited to only a few people, but these people have the problem regularly. The page in question...
3
by: Stephen Miller | last post by:
I have an ASP.Net application that sends a NetworkStream to a .Net Service, which has a TcpListener listening on a port for the ASP.Net client. When it receives a request it creates a new thread...
0
by: MichaelR | last post by:
I'm getting a curious result from a module using WinInet on the client and IIS 6.0/ASP.NET on the server. Can't really tell if it's a client or a server issue. The client module uses...
1
by: Rachit | last post by:
Hi, I've a WebApp that calls Microsoft CRM WebServices to perform a particular action. In my WebApp I am spawning a new async thread for all the CRM related actions and sending the user to Thank...
4
by: hitendra15 | last post by:
Hi following is the code which sends file to the browser means user can download file, but the code generates error message Thread Being Aborted., will any one put their thoughts protected void...
5
by: Alex A. | last post by:
I have this web application that runs for about 5 minutes doing to database processing, about 50% of the time I get the error message Thread was being aborted. I am looking for hint at where to...
8
by: g_man | last post by:
I am trying trap Runtime error 3022 (duplicates) in the click event of a command button that closes the form. I have code in the Form_Error event that does a good job of providing a more meaningful...
3
by: jediknight | last post by:
Having recently been asked to look into some bugs in one of our old web systems, I keep getting an error message in some try...catch statements that I've put in. Error message is Thread was...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.