Professional Web Applications Themes

bizaar exception that isn't really an exception - ASP.NET General

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" <scooncethegapJUNKcompany.com> wrote in message news:uRW6C3gODHA.1024TK2MSFTNGP12.phx.gbl... > 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 ...

  1. #1

    Default Re: bizaar exception that isn't really an exception

    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" <scooncethegapJUNKcompany.com> wrote in message
    news:uRW6C3gODHA.1024TK2MSFTNGP12.phx.gbl...
    > 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" <vader1000x> wrote in message
    > news:OE7CIqdODHA.2480tk2msftngp13.phx.gbl...
    > > 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" <123456789cloppertotalise.co.uk987654321> wrote in message
    > > news:e6gmIfdODHA.2636TK2MSFTNGP10.phx.gbl...
    > > > no offense here but you really should read up on
    > ThreadAbortException and
    > > > its siblings
    > > >
    > > >
    > > > "jeff" <vader1000x> wrote in message
    > > > news:uZcMStbODHA.3192TK2MSFTNGP10.phx.gbl...
    > > > > 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
    > > > >
    > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    jeff Guest

  2. Moderated Post

    Default Re: bizaar exception that isn't really an exception

    Removed by Administrator
    jeff Guest
    Moderated Post

  3. Moderated Post

    Default Re: bizaar exception that isn't really an exception

    Removed by Administrator
    jeff Guest
    Moderated Post

  4. Moderated Post

    Default Re: bizaar exception that isn't really an exception

    Removed by Administrator
    Jason Guest
    Moderated Post

  5. Moderated Post

    Default Re: bizaar exception that isn't really an exception

    Removed by Administrator
    Scott Guest
    Moderated Post

Similar Threads

  1. Question SQL Exception
    By pjariwala in forum Brainstorming Area
    Replies: 0
    Last Post: April 16th, 04:57 PM
  2. The server threw an exception. (Exception
    By swapneel_kulkarni@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 1
    Last Post: March 7th, 12:00 AM
  3. Replies: 0
    Last Post: January 9th, 09:15 AM
  4. Soap Exception Q
    By Vai2000 in forum ASP.NET Web Services
    Replies: 0
    Last Post: February 20th, 04:33 PM
  5. Replies: 0
    Last Post: July 29th, 05:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139