When I open this excel file link in my browser, It will be downloaded successfully. But when I download it by the following c# code
private void downloadFile()
{
string remoteUri = "http://members.tsetmc.com/tsev2/excel/MarketWatchPlus.aspx?d=0";
string fileName = @"g:\temp.xlsx";
using (var client = new WebClient())
{
client.DownloadFile(remoteUri, fileName);
}
}
and I open it in the file explorer, I get the file format error:
What is wrong with my code?

