thread was being aborted

Step 1 close xml.excel namespace
Step 2 page load add two line highlighted 
Step 3 method to download