Problem:
When you request a file with .docx extension from an application served from IIS 6.0, you receive the following error message “HTTP Error 404 – File or directory not found”, even though the file is there & permissions are correctly set.
Solution:
- Open the IIS Microsoft Management Console (MMC), right-click computer name, and then click Properties.
- Click MIME Types.
- Click New.
- In the Extension box, type: .docx
- In the MIME Type box, type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
- Click Apply
- Recycle the application pool:
- To determine application pool: right click the website > properties > home directory
- Then: right click application pool > tasks > Recycle
