Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4561044
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:01:09+00:00 2026-05-21T18:01:09+00:00

What is happening is occasionally at random instead of the HTML being returned to

  • 0

What is happening is occasionally at random instead of the HTML being returned to the browser as you would expect, it looks a little something like this:

Thread was being aborted.HTTP/1.1 200 OK

(the rest of the header)

… (like 1/10th of the HTML)

That’s it, they are literally getting a bunch of text in the browser window.

It doesn’t happen all the time, just randomly. Computers… in my experience always have a reason for everything, ALWAYS. So what’s the heck is going on here?

I have searched the entire solution and found quite a few calls to Response.Redirect() which seems like it could be the culprit based on other questions I have read…

this is all well and good but it does not tell me why it would be happening at random

…or why it would be giving this strange result back to the browser rather than the normal custom error page we have setup. If this is indeed what is causing it, which I have not yet determined. If it is, I don’t think I can simply add the ‘false’ parameter because I don’t know what that would do if it kept executing the current code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T18:01:10+00:00Added an answer on May 21, 2026 at 6:01 pm

    When you call Response.End (which is called by other methods like Response.Redirect and Server.Transfer) the executing thread is aborted and a ThreadAbortException is thrown (aborting threads are not exceptional in ASP.NET). You can catch this exception but it will always be rethrown in the catch handler. This sets it apart from other exception types but it makes sense because you should not be able to stop a thread from aborting and in the process clean up the stack by executing finally blocks.

    Perhaps you have some exception handling logic where Response.End is called inside a try block and the unexpected output is produced in the catch block?

    Something like this (probably more convoluted and hard to track in a “mature” code base):

    void HandleRequest() {
      try {
        Response.Redirect(...);
      }
      catch (Exception ex) {
        Response.Write(...);
      }
    }
    

    If the Response.Redirect ends with Response.End a ThreadAbortException is thrown and the Response.Write will execute adding text to the response.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why is this happening? The string I'm parsing looks clearly like an int. The
Strange problem happening where the end of these 2 blocks of code (this part:
Something weird is happening, I made an EJB3 wich is suposed to write something
This started happening in the last few days; possibly since I installed Visual Studio
This problem is happening for me on IE8 and Chrome which makes me think
Something strange is happening in my code where I'm using a StackTrace. It's almost
This is something I'm trying to do for a university assignment and I'm quite
I am trying to figure why this error is happening and determine if it
This question is not about timing something accurately on Windows (XP or better), but
Occasionally the mongod.exe process will crash for no apparent reason... it just started happening

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.