{"id":1002,"date":"2010-03-29T16:36:46","date_gmt":"2010-03-29T15:36:46","guid":{"rendered":"http:\/\/www.galhano.com\/blog\/?p=1002"},"modified":"2010-03-29T16:36:46","modified_gmt":"2010-03-29T15:36:46","slug":"iis-returns-http-404-for-office-2007-file-downloads","status":"publish","type":"post","link":"http:\/\/galhano.com\/blog\/?p=1002","title":{"rendered":"IIS returns HTTP 404 for Office 2007 file downloads"},"content":{"rendered":"<p>This is kind of an old issue, but since I mostly work on corporate projects, we\u2019re a bit slow on adopting new versions of anything.<br \/>\nI ran into this issue with Microsoft Word 2007 documents, but the same error will occur with any other file type that isn\u2019t properly configured on the web server.<\/p>\n<p><strong>Symptoms<\/strong><br \/>\nMicrosoft Word 2007 documents return a HTTP 404 error when users attempt to download the documents. The web server uses Microsoft IIS 6.0.<\/p>\n<p><strong>Cause<\/strong><br \/>\nIIS does not have a wildcard mapping for unknown MIME types and the file type is not known to the web server. This prevents IIS 6.0 to serve the file.<br \/>\n<strong><br \/>\nResolution<\/strong><br \/>\nTo resolve the errors, add the missing MIME types to IIS.<br \/>\nInstructions<\/p>\n<p>1. Open IIS Management Console (via Computer Manager-&gt;Services and Applications-&gt;Internet Information Service)<br \/>\n2. Right click on \u201cWeb Sites\u201d.<br \/>\n3. Choose Properties<br \/>\n4. Activate \u201cHTTP Headers\u201d tab<br \/>\n5. Click \u201cFile Types\u201d button in the MIME Map groupbox<br \/>\n6. Click \u201cNew Type\u201d<br \/>\n7. Enter the MIME type data from the below table<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"400\">\n<thead>\n<tr>\n<th width=\"80\" valign=\"top\">Associated<br \/>\nExtension<\/th>\n<th width=\"318\" valign=\"top\">Content type (MIME)<br \/>\n(remove any spaces below)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td width=\"80\" valign=\"top\">docx<\/td>\n<td width=\"318\" valign=\"top\">application\/vnd.openxmlformats-  officedocument.wordprocessingml.document<\/td>\n<\/tr>\n<tr>\n<td width=\"80\" valign=\"top\">pptx<\/td>\n<td width=\"318\" valign=\"top\">application\/vnd.openxmlformats-  officedocument.presentationml.presentation<\/td>\n<\/tr>\n<tr>\n<td width=\"80\" valign=\"top\">xlsx<\/td>\n<td width=\"318\" valign=\"top\">application\/vnd.openxmlformats-  officedocument.spreadsheetml.sheet<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li><a href=\"http:\/\/jamesewelch.wordpress.com\/2008\/05\/16\/iis-returns-http-404-for-file-downloads\/\">jamesewelch.wordpress.com<\/a><\/li>\n<li><a href=\"http:\/\/www.therightstuff.de\/2005\/10\/23\/IIS+And+Unknown+MIME+Types.aspx\" target=\"_blank\">IIS and Unknown MIME Types<\/a> (Alexander Gro\u00df, rightstuff.de)<\/li>\n<li><a href=\"http:\/\/support.microsoft.com\/kb\/326965\" target=\"_blank\">IIS 6.0 does not serve unknown MIME types<\/a> (MSDN, KB 326965)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This is kind of an old issue, but since I mostly work on corporate projects, we\u2019re a bit slow on adopting new versions of anything. I ran into this issue with Microsoft Word 2007 documents, but the same error will occur with any other file type that isn\u2019t properly configured on the web server. Symptoms [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"close","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,22],"tags":[],"class_list":["post-1002","post","type-post","status-publish","format-standard","hentry","category-iis","category-microsoft","author-admin"],"_links":{"self":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1002"}],"version-history":[{"count":2,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1002\/revisions"}],"predecessor-version":[{"id":1004,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1002\/revisions\/1004"}],"wp:attachment":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1002"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}