473,396 Members | 2,154 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,396 software developers and data experts.

Thread was being aborted error message when I use Response.Redirect in ASP.net

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.
Nov 16 '05 #1
5 12922
It is like this by design, when you use Response.Redirect it calls the
Response.End method which raises a ThreadAbortException when finished
processing the current response.

check out

http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemwebhttpresponseclassredirecttopic.asp

HTH

Ollie Riches

"karunakar" <ka***********@stcroixsystems.com> wrote in message
news:Oc**************@TK2MSFTNGP15.phx.gbl...
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.

Nov 16 '05 #2
"karunakar" <ka***********@stcroixsystems.com> wrote in message
news:Oc**************@TK2MSFTNGP15.phx.gbl...
How can I solve this problem?


Change Response.Redirect(<URL>) to Response.Redirect(<URL>, false)
Nov 16 '05 #3
Hi,

I assume your Response.Redirect is within a 'try' block. If you take it
out of this then you will no longer get the error.

Regards,

Peter Chadwick (MCP)
pe**@code-explorers.com

Nov 16 '05 #4
Hi,

Sounds like your Response.Redirect statement is within a 'try' block.

If you take this statement out of the 'try' block, you will no longer
get the error.

Regards,

Peter Chadwick (MCP)
pe**@code-explorers.com

Nov 16 '05 #5
Hi,

Is your Response.Redirect statement with a try/catch block?

If so, take it out of the try/catch block and the error should
disappear...

HTH

Peter Chadwick (MCP)
pe**@code-explorers.com

Nov 16 '05 #6

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

Similar topics

2
by: Brian | last post by:
I'm trying to response.redirect to another page on a button click event and I get an error message stating that the thread was being aborted (if I trap for the error that is...) I've researched...
1
by: GSK | last post by:
I am logging the following error when re-directing via Response.Redirect: "Thread was being aborted at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object...
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...
6
by: HLady | last post by:
I have been googling and cannot seem to find the answer I seek so I turn to the group. I have an application where I have been receiving 'Thread was being aborted' error ocasionally. In production...
5
by: Alan Silver | last post by:
Hello, I have a page that is supposed to do some checking, and if OK, set a session variable before redirecting to another page. The following code is a simplified version, I have hard-coded the...
3
by: David Lozzi | last post by:
Howdy, I have an error mod in my app that emails me whenever there is an error. I use try..catch to capture the error. It works great, I love it, except for this one minor issue. Whenever there...
5
by: Jimi | last post by:
Hi all, I have a user control which raises an event to the parent page when a person clicks on a link in a datagrid. In the event handler inside the parent page I construct a url to redirect to...
4
by: R.A.M. | last post by:
Hello, Could you help me plase? I have an ASP.NET page with "Search" button; when button is clicked Search_Click is called; here's the code: protected void Search_Click(object sender, EventArgs...
1
by: R.A.M. | last post by:
Hello, Could you help me plase? I am describing my problem second time because I haven't got a solution. I have an ASP.NET page with "Search" button; when button is clicked Search_Click is...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.