Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1028191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:20:59+00:00 2026-05-16T12:20:59+00:00

My application generates XLSX files based on a users requirements. After the XLSX file

  • 0

My application generates XLSX files based on a users requirements.

After the XLSX file is generated the user is redirected to where the file is saved using Response.Redirect…

Response.Redirect("filename.xlsx")

When the user then opens the file… they recieve this 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?

As a temporary fix I’ve instructed my users to press “Yes” when they receive this message and the file opens perfectly fine.

Does anyone have any ideas why IE6 is trying to open an XLSX file as an XLS?

Note: I have a similar application that generates PPTX files in the same manner – and these open without a problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T12:20:59+00:00Added an answer on May 16, 2026 at 12:20 pm

    I’ve found that it is an issue with older versions of windows server.

    Both the xlsx MIME type needs to be added and there are also a couple driver updates that need to be installed (I don’t know specifically which ones. Our IT department is taking care of it)

    To add the MIME type: Go to IIS Manager and add the .xlsx MIME type. (Documentation).

    The MIME type that needs to be added is:

    • File Extension: .xlsx
    • MIME Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

    Further information on this can be found here: http://technet.microsoft.com/en-us/library/ee309278(office.12).aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one an application that generates .pcl files. Once generated they are saved
My web application generates an XML file. I'm using a Struts2 stream result to
I wrote an application which generates an XML file using XmlReader and XmlWriter (with
My application generates some .xls files and until now I was using PHPExcel lib
My application generates XAML files from in-memory objects using the built-in .NET solution: System.XamlServices.Save(Stream,
here's the code I have: Response.Clear(); Response.AddHeader(content-disposition, attachment; filename=file.xlsx); Response.ContentType = application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; Response.BinaryWrite(pck.GetAsByteArray()); Response.End();
My Java Swing application generates an HTML file, and I want to open it
I have an application that generates xml files, and they might contain special characters.
let's consider a web application built using MVC concept. If my application generates some
I have an application that generates a lengthy Xml output file which contains many

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.