473,387 Members | 1,492 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.

Thread was being aborted

Hello,

I am using FormsAuthentication. I am logging In through a Authentication
cookie and signing out through a button.

On click of that button i am writing

FormsAuthentication.SignOut();
Response.Redirect("Login.aspx");

At Response.Redirect("Login.aspx"); this line it is giving
'Thread was being aborted' exception

Does any one know how to solve the problem

Thanks

Nov 16 '05 #1
5 59731
that's the default expected behavior of Response.Rediret (and
Server.Transfer), so don't worry about that.

"Reshma Prabhu" wrote:
Hello,

I am using FormsAuthentication. I am logging In through a Authentication
cookie and signing out through a button.

On click of that button i am writing

FormsAuthentication.SignOut();
Response.Redirect("Login.aspx");

At Response.Redirect("Login.aspx"); this line it is giving
'Thread was being aborted' exception

Does any one know how to solve the problem

Thanks

Nov 16 '05 #2
Reshma,

This is a known problem. For a workaround you can use an overload to
Response.Redirect that will pass false to the endresponse parameter to
suppress the internal call to Response.End (e.g.
Response.Redirect("Login.aspx", false);). I have posted the link to this in
the MSDN below.

Hope this helps.
-----------------
http://support.microsoft.com/kb/312629/EN-US/
Nov 16 '05 #3
strictly speaking, it is not a *problem. It is designed that way.

--
Regards,
Alvin Bruney

Shameless Author plug
The Microsoft Office Web Components Black Book with .NET
http://tinyurl.com/27cok
"Brian Brown" <Br********@discussions.microsoft.com> wrote in message
news:65**********************************@microsof t.com...
Reshma,

This is a known problem. For a workaround you can use an overload to
Response.Redirect that will pass false to the endresponse parameter to
suppress the internal call to Response.End (e.g.
Response.Redirect("Login.aspx", false);). I have posted the link to this
in
the MSDN below.

Hope this helps.
-----------------
http://support.microsoft.com/kb/312629/EN-US/

Nov 16 '05 #4
Just quoting the MSDN...
"To work around this problem, use one of the following methods: "

Maybe the writers of the PRB and the designers should get together :-)

http://support.microsoft.com/kb/312629/EN-US/

Nov 16 '05 #5
tehehe, that is a very good one. PRB and writers really need to be in sync.
I agree.

--
Regards,
Alvin Bruney

Shameless Author plug
The Microsoft Office Web Components Black Book with .NET
http://tinyurl.com/27cok
"Brian Brown" <Br********@discussions.microsoft.com> wrote in message
news:42**********************************@microsof t.com...
Just quoting the MSDN...
"To work around this problem, use one of the following methods: "

Maybe the writers of the PRB and the designers should get together :-)

http://support.microsoft.com/kb/312629/EN-US/

Nov 16 '05 #6

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

Similar topics

0
by: Johanna | last post by:
Hello, Thread was being aborted exception is thrown by my asp.net application. I hope someone could help me with this error that I get in windows 2003 server. This error has not occured with...
3
by: Johanna | last post by:
Hello, Thread was being aborted exception is thrown by IIS for my asp.net application on win2003 server. This error has not yet occured with the same asp.net application on windows 2000...
1
by: Keith F. | last post by:
Hi, I have an asp.net web app that is intermittently throwing "Thread was being aborted." errors in my data access component. This seems to occur when the app is under a heavier than normal load....
3
by: Keith F. | last post by:
Hi, I have an asp.net web app that is intermittently throwing "Thread was being aborted." errors in my data access component. This seems to occur when the app is under a heavier than normal load....
1
by: Josef K. | last post by:
I've started getting "Thread was being aborted" errors. This errormessage has me puzzled. I'm using the same very simple approach throughout the application, and it works elsewhere: -- my aspx...
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: Totto | last post by:
Hi, I'm doing a server.transfer from a click event of a button, but an exception is raised with "Thread was being aborted" Anyone know why? Thanks Tor
9
by: esakal | last post by:
Hello, I'm programming an application based on CAB infrastructure in the client side (c# .net 2005) Since my application must be sequencally, i wrote all the code in the UI thread. my...
2
by: Daniel Knöpfel | last post by:
Hi I am develloping an asp.net 2.0 application. For some tasks (daily notifications to users via email), we use background threads. I rather have this task as background thread of the asp.net...
1
by: malu | last post by:
Hi I faced one exception when use the thread in c#. I start the thread in a class.Then i start the thread thru the main method constructor.In that thred i use the thred.sleep() method. Then...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.