Solved

docx gives error before opening on iis7 website

Posted on 2011-03-22
4
738 Views
Last Modified: 2012-05-11
I have a website running iis7, on a windows 2008, 64 bit server.  When we try to open a docx filetype, we first receive an error that the file cannot be opened because there are problems with the contents.  When you click on more details it says the file is corrupted.  When you tell it to open anyway, the file looks fine.

I have within IIS a mime type for docx.  I have set this at application/vnd.ms-word.document.12 (which was default in IIS) and changed it to application/vnd.openxmlformats-officedocument.wordprocessingml.document which I found on the Microsoft site.  Neither setting allowed the document to open without the error message.

I do not have a handler mapping or anything for this file type, just the mime type.

Any ideas would be appreciated.

thanks
terri
0
Comment
Question by:web-dba
  • 3
4 Comments
 
LVL 15

Accepted Solution

by:
pcsmitpra earned 500 total points
ID: 35196969
Following are Mime settings for IIS 7
.docm,application/vnd.ms-word.document.macroEnabled.12
.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document
.dotm,application/vnd.ms-word.template.macroEnabled.12
.dotx,application/vnd.openxmlformats-officedocument.wordprocessingml.template
.potm,application/vnd.ms-powerpoint.template.macroEnabled.12
.potx,application/vnd.openxmlformats-officedocument.presentationml.template
.ppam,application/vnd.ms-powerpoint.addin.macroEnabled.12
.ppsm,application/vnd.ms-powerpoint.slideshow.macroEnabled.12
.ppsx,application/vnd.openxmlformats-officedocument.presentationml.slideshow
.pptm,application/vnd.ms-powerpoint.presentation.macroEnabled.12
.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation
.xlam,application/vnd.ms-excel.addin.macroEnabled.12
.xlsb,application/vnd.ms-excel.sheet.binary.macroEnabled.12
.xlsm,application/vnd.ms-excel.sheet.macroEnabled.12
.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xltm,application/vnd.ms-excel.template.macroEnabled.12
.xltx,application/vnd.openxmlformats-officedocument.spreadsheetml.template

You can check the configuration with a new document.
0
 
LVL 15

Expert Comment

by:pcsmitpra
ID: 35206783
Its zone was wrong, It should be for IIS WEb Server zone.
0
 

Author Comment

by:web-dba
ID: 35206807
Thanks!  I added all the MIME types instead of just the word ones and tried it with a NEW document as you suggested and it worked.  Thanks so much for the help!!
0
 
LVL 15

Expert Comment

by:pcsmitpra
ID: 35206835
That is cool, But incase somebody else will look for same problem he will not find the solution because you have selected the zone Perl. Please chagne the zone to "Microsoft IIS Web Server",
Thank You.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to redirect our OWA exchange 2016 address 3 76
IT Desktop Support 11 90
Application gets hammered - IIS 2 43
Initial get page response times and IIS8 15 55
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Viewers will learn the different options available in the Backstage view in Excel 2013.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question