I am sure there is a simple answer to this one.
I have a docx file that I get an error when trying to download(document cannot be found).... .doc is fine .txt is also fine. I am sure this is just an iis setting, the permissions on the server are all the same for all files.
IIS -> Isapi_Redirect -> Tomcat
How do I programmatically create a FTP site in IIS7 on Windows7?
Mysteriously appearing required NT authentication after Classic ASP site update?
To allow .docx files to be downloaded, follow the steps from the KB article linked above:.
Differences between IIS 6.0 / Windows 2003 and IIS 7.0 / Windows 2008
- Open the IIS Microsoft Management Console (MMC), right-click the local computer name, and then click Properties.
- Click MIME Types.
- Click New.
- In the Extension box, type the file name extension that you want (in this case, .docx).
- In the MIME Type box, type application/vnd.openxmlformats-officedocument.wordprocessingml.document (thanks to @web developer for pointing out this MIME type, which supercedes the 'application/msword' from my original answer).
- Apply the new settings.
How do I configure IIS to parse c# code in a .xml file?
Note that you must restart the World Wide Web Publishing Service or wait for the worker process to recycle for the changes to take effect.
Passive FTP instead of Active FTP
In this example, IIS now serves files with the .docx extension.
Mod_rewrite for IIS
IIS SMTP Message Inspection
In the MIME Type box, type application/msword.The "application/msword" MIME type is the type for the word 2003 ".doc" files.
The correct MIME type for word 2007 ".docx" files is: .
application/vnd.openxmlformats-officedocument.wordprocessingml.document.See this post..
application/vnd.openxmlformats-officedocument.presentationml.presentation .and .xlsx (Excel 2007) is.
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.[These where transposed.
I have corrected now, thanks for pointing it out Sven.].
See Requests for static files return 404 error (IIS 6.0). Other than that, and just because you did not specify where the error shows up: When you forbid caching in a header, similar behavior may occur on the client.
But that is a general issue, and not bound to .docx..