Response.ClearContent();
Response.ClearHeaders();
Response.AddHeader("content-disposition", "attachment; filename=DeliverableExcelExport.xlsx");
Response.ContentEncoding = System.Text.Encoding.UTF8;
Response.BinaryWrite(documentcontent);
Response.Flush();
Response.Close();
Response.End();
i am using above code to open excel file at client side
we have deployed application on two servers on one server it is working fine
on another it showing below error i checked mime type added content type but no luck
error file format or extenstion is not valid verify that file has not been corrupted and the file extenstion matches file format
...
Go to the complete details ...