Solved

docx gives error before opening on iis7 website

Posted on 2011-03-22
4
733 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
Comment Utility
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
Comment Utility
Its zone was wrong, It should be for IIS WEb Server zone.
0
 

Author Comment

by:web-dba
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

We were having a lot of "Heartbeat Alerts" in our SCOM environment, now "Heartbeat" in a SCOM environment for those of you who might not be familiar with SCOM is a packet of data sent from the agent to the management server on a regular basis, basic…
Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now