Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Thread was being Aborted

Thread was being Aborted

Scheduled Pinned Locked Moved ASP.NET
helplounge
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mtone
    wrote on last edited by
    #1

    I am Using Response.redirect for display an error page as well as general redirection. I find that most of the time this causes the error Thread was being aborted. mThis error then show up n my error page instead of the error I passed to my error handler class, which also does a redirect. Any Ideas would be extremely helpful. Thanks

    T 1 Reply Last reply
    0
    • M mtone

      I am Using Response.redirect for display an error page as well as general redirection. I find that most of the time this causes the error Thread was being aborted. mThis error then show up n my error page instead of the error I passed to my error handler class, which also does a redirect. Any Ideas would be extremely helpful. Thanks

      T Offline
      T Offline
      Tim Friesen
      wrote on last edited by
      #2

      This occurs when you try to redirect to another page while inside of a try block of a try/catch. 2 possible solutions, redirect elsewhere, or redirect using the overload. For instance: Response.Redirect("url.aspx", false); this will cause redirection to delay until the current page has completed its processing. Tim Friesen tntfriesen1@hotmail.com Run... You fools! - Gandalf

      M 1 Reply Last reply
      0
      • T Tim Friesen

        This occurs when you try to redirect to another page while inside of a try block of a try/catch. 2 possible solutions, redirect elsewhere, or redirect using the overload. For instance: Response.Redirect("url.aspx", false); this will cause redirection to delay until the current page has completed its processing. Tim Friesen tntfriesen1@hotmail.com Run... You fools! - Gandalf

        M Offline
        M Offline
        mtone
        wrote on last edited by
        #3

        Tim Thanks for the info, I have been fighting this for months. Some initial testing worked out well. Looks like I have to rethink my handling of exceptions.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups