Why showing error message while opening .xls file
问题 In my asp.net, C# application we are generating and downloading .xls file. But when I'm trying to open, it's giving a message "The file you are trying to open, 'filename.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?" If I press 'Yes' it's opening. I changed the file extension to .xlsx, still same message. Can anyone tell me why this is happening?