Solved

docx gives error before opening on iis7 website

Posted on 2011-03-22
4
741 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

752 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