Docx 404 Error

January 14th 2010

The Problem of 404 Server Errors with .docx files

With the release of Microsoft Office 2007 came the release of the new Microsoft Word extension ".docx"”. This new format has come with some expense to end users. Older versions of Microsoft Word can't open the new file format without a compatibility update from Microsoft. While the compatibility update addresses one issue for end users it doesn't address another one related to the web and ISS web servers.

The Problem…

When trying to create a link on a web page to a file ending in the .docx extension a user will receive a 404 – File not found server error.

The Solution…

If this is occurring, chances are that your IIS server hasn't been configured to allow the delivery of .docx files. To resolve the problem you will need to add a mime format for this extension.

In IIS, right click on the site that is trying to deliver the .docx files and click properties.

  • Click Mime Types.
  • Click New.
  • In the Extension field type ".docx". (minus the quotes)
  • In the MIME Type field type "application/vnd.openxmlformats-officedocument.wordprocessingml.document" (minus the quotes)
  • Stop the site.
  • Restart the site.

Your .docx files should now be registered with the IIS server and will no longer return a 404 – File not found server error.

Web Department Manager

About Us

WSI is a small business and a leading provider of custom programming and database solutions for government entities, Fortune 1000 companies, and emerging businesses. We are your custom development experts.