Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: bizaar exception that isn't really an exception

Reply
Thread Tools

Re: bizaar exception that isn't really an exception

 
 
jeff
Guest
Posts: n/a
 
      06-24-2003
well, threadabortexception didn't mention anything about response.redirect,
that's why i didn't see anything.

but, thanks for the info, that would explain it... sort of... why doesn't
this exception get caught in the debugger? ie, break on all errors is
selected, but this error isn't caught.

jeff

"Scott" <> wrote in message
news:...
> As Jason said: take a look at ThreadAbortException (and also
> response.redirect).
>
> The following are taken from the MSDN Help:
>
> HttpResponse.Redirect(string):
> Redirect calls End which raises a ThreadAbortException exception upon
> completion.
>
> ThreadAbortException:
> When a call is made to the Abort method to destroy a thread, the
> common language runtime throws a ThreadAbortException.
> ThreadAbortException is a special exception that can be caught, but it
> will automatically be raised again at the end of the catch block.
>
> I hope that helps.
> Scott
>
> "jeff" <> wrote in message
> news:...
> > happens when you issue thread.abort on a thread. this isn't

> happening.
> > it's a single thread and nowhere do i do any thread controls.
> >
> > jeff
> >
> > "Jason" <987654321> wrote in message
> > news:...
> > > no offense here but you really should read up on

> ThreadAbortException and
> > > its siblings
> > >
> > >
> > > "jeff" <> wrote in message
> > > news:...
> > > > i am using asp .net 1.1. i am having a very strange problem. i

> had a
> > > batch
> > > > of code that was working great. i made a couple of changes and

> i
> > noticed
> > > it
> > > > was always throwing an exception. i worked on it and below is

> the code
> > in
> > > > the event that causes the pseudo exception. here is the strange

> thing -
> > i
> > > > have my debugger set to break on all errors regardless of

> whether it is
> > > > handled or not. it never breaks into the debugger. the

> exception
> > > reported
> > > > is "thread is aborting" or something like that. this is bogus

> because
> > i'm
> > > > not running a multi-threaded app! so, since i was convinced

> this was a
> > > > bogus error, i moved the response.redirect outside of the

> try/catch
> > block
> > > > and it worked fine. can anybody explain this to me? also, this

> code
> > used
> > > > to work fine.
> > > >
> > > > ' try to get data
> > > > Try
> > > >
> > > > ' if made it this far, redirect to the report page.
> > > >
> > > > Response.Redirect("report.aspx")
> > > >
> > > > Catch ex As Exception
> > > >
> > > > ' set error condition to prompt user
> > > >
> > > > Session.Item(clsConstants.clsSession.MAIN_ERROR) = True
> > > >
> > > > Session.Item(clsConstants.clsSession.EXCEPTION) = ex
> > > >
> > > > DisplayError(Session.Item(clsConstants.clsSession. EXCEPTION),

> Page,
> > True)
> > > >
> > > > End Try
> > > >
> > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OT : But help really really needed re: Domain Name selling, hosting etc. problem nc HTML 1 02-03-2005 07:24 PM
REALLY REALLY WERID PROBLEM!!!!pls take a look Amir ASP .Net 3 01-23-2004 06:01 PM
really really mysterious IE6 problem--secure site ultraviolet353 Computer Support 7 11-22-2003 07:56 PM
MR. ED REALLY, REALLY LOVES THE D60 !!! Annika1980 Digital Photography 9 10-28-2003 04:53 PM
Re: bizaar exception that isn't really an exception jeff ASP .Net 3 06-26-2003 01:02 PM



Advertisments