How to Avoid Response.End() “Thread was being aborted” Exception during the Excel file download

后端 未结 16 2342
感动是毒
感动是毒 2020-11-27 11:47

I tried to convert my dataset into excel and download that excel .I got my required excel file.But System.Threading.ThreadAbortException was raised every excel download. Ho

16条回答
  •  广开言路
    2020-11-27 12:11

    I used all above changes but still I was getting same issue on my web application.

    Then I contacted my hosting provide & asked them to check if any software or antivirus blocking our files to transfer via HTTP. or ISP/network is not allowing file to transfer.

    They checked server settings & bypass the "Data Center Shared Firewall" for my server & now our application is able to download the file.

    Hope this answer will help someone.This is what worked for me

提交回复
热议问题