Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

docx gives error before opening on iis7 website

Posted on 2011-03-22
4
Medium Priority
?
745 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 2000 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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…

719 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