none
HttpContext.Response.Redirect throwing thread abort exception errror RRS feed

  • Question

  • Hello,

    Greetings !!!

    I have a handler (.ashx) file hosted in web server which is accessible through internet. I have another handler file (.ashx) hosted in web server which has intranet access. Whenever a web response is  trying to hit the handler file which has internet access then i am trying to redirect this response to the handler file present in the intranet website. But i am getting the thread abort exception whenever response is getting redirected to Intranet website. I have written the following line in order to redirect the response to intranet website

    context.Response.Redirect(LocalIntranetWebsiteURL); 

    Can you please suggest on how to fix the Thread abort exception error and redirect the web response from the handler file present in the Web Server(Which has internet access) to the handler file which has intranet access?

    Thanks and Regards,

    Kamal

    Wednesday, February 27, 2019 5:13 AM