locked
Thread Abort RRS feed

  • Question

  • User1203305613 posted

    I am receiving this exception,when I try to load the report ,it executes for around 5 minutes and throws the error

    "Server returned 404:Not Found response. Page will be reloaded when you click "OK""

    The Log shows the below exception.

    System.Threading.ThreadAbortException: Thread was being aborted.

    Anythoughts on how to resolve this error. 

    Wednesday, February 28, 2018 12:38 PM

Answers

  • User1203305613 posted

    As per logs the thread abort is being caused by IIS timeouts.Added this  to increase the IIS timeout .thus avoiding thread aborts

    <system.web>
    <httpRuntime executionTimeout="999"/>
    </system.web>

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, March 14, 2018 12:37 PM

All replies

  • User753101303 posted

    Hi,

    Some context could help. It looks like a https://msdn.microsoft.com/en-us/library/system.web.httpserverutility.scripttimeout(v=vs.110).aspx that you could increase (or if using SSRS or Crystal report, it might be a timeout option in the service client to tell the server how much time is allowed).

    You could also double check why it takes that much time (for example showing more data than the user really need).

    Wednesday, February 28, 2018 12:55 PM
  • User-707554951 posted

    Hi KALYANA ALLAM

    This problem occurs when the endResponse parameter of the HttpResponse.Redirect method is not set to false. By default, the endResponse parameter is set to true.
    Instead of Response.End();

    Use HttpContext.Current.Response.End();

    or

    use HttpContext.Current.ApplicationInstance.CompleteRequest()

    Related link:

    https://support.microsoft.com/en-us/help/918181/fix-you-receive-a-threadabortexception-exception-in-an-asp-net-web-app

    Best regards

    Cathy

    Thursday, March 1, 2018 6:08 AM
  • User1203305613 posted

    Hi,

    Thanks for the suggestion will try it out and will get back to you.

    Thursday, March 1, 2018 2:04 PM
  • User1203305613 posted

    Hi,

    Thanks for the suggestion will try it out and will get back to you.

    Thursday, March 1, 2018 2:04 PM
  • User1203305613 posted

    As per logs the thread abort is being caused by IIS timeouts.Added this  to increase the IIS timeout .thus avoiding thread aborts

    <system.web>
    <httpRuntime executionTimeout="999"/>
    </system.web>

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, March 14, 2018 12:37 PM