469,330 Members | 1,335 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,330 developers. It's quick & easy.

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 59469
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Keith F. | last post: by
3 posts views Thread by Keith F. | last post: by
1 post views Thread by Josef K. | last post: by
5 posts views Thread by Jimi | last post: by
1 post views Thread by malu | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.