472,354 Members | 1,543 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 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 59636
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

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.