Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 21st, 2004, 10:23 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default Error: Thread was being aborted.

Hello,

Does anybody know what this error is related to? I am not explicitly using threads in my code, and this is occuring when I do a Server.Transfer("..")?

Thanks,

Brian Mains
__________________
Brian
 
Old January 27th, 2004, 02:07 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I found on the web that you should have a Catch statement for threading errors, such as:
Code:
Catch objEx as System.Threading.ThreadAbortException
    'Do nothing
When you do a Server.Transfer() or Response.Redirect(), if you have code after this statement, it sometimes throws an error.

In case you were interested...

Brian
 
Old February 9th, 2004, 12:50 PM
Registered User
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Guys!

Please use -> Response.Redirect("yourpage", false)
instead of -> Response.Redirect("yourpage")

This is is the only bulls**t happening here

bye and regards.

SHIMAIL AHMED GILLANI
KARACHI, PAKISTAN


 
Old February 10th, 2004, 03:52 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello shimail,

The second parameter for this method was defined as "endResponse". Should it then be set to "true" instead of "false?" What does this parameter define?

Thanks for your help,

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
Thread was being aborted acko ASP.NET 1.0 and 1.1 Basics 15 March 26th, 2014 02:52 AM
Thread was being aborted error neptas ASP.NET 2.0 Professional 0 January 8th, 2008 08:00 AM
Thread was being aborted sohailmaroof ASP.NET 1.0 and 1.1 Basics 2 January 13th, 2007 02:25 AM
Message-thread is getting aborted. debjanib ASP.NET 1.0 and 1.1 Professional 1 July 27th, 2006 06:00 PM
Timeout and Thread was being aborted Vishal_7 ASP.NET 1.0 and 1.1 Basics 0 December 13th, 2004 02:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.