Вы находитесь на странице: 1из 1

You upload an Office 2007 file (pptx, xlsx, docx, etc.

) to your IIS6 web server and someone tries to download it, but receives: HTTP Error 404 File or directory not found. Internet Information Services (IIS) The file is on the server. The URL is correct. You can even download ppt, doc, xls, zip, and other files from the same location. Whats up??? Out of the box, IIS6 only accepts requests for known MIME types. Since Office 2007 was released after Windows Server 2003 and IIS6, IIS6 knows nothing about the new MIME types. So you need to manually add them: 1. 2. 3. 4. Open Computer Management. (Right-click My Computer Manage) Right-click Internet Information Services (IIS) Management Properties Click MIME Types Click New and add the following: MIME Type application/vnd.openxmlformats-officedocument.spreadsheetml.sheet application/vnd.openxmlformats-officedocument.spreadsheetml.template application/vnd.openxmlformats-officedocument.presentationml.template application/vnd.openxmlformats-officedocument.presentationml.slideshow application/vnd.openxmlformats-officedocument.presentationml.presentation application/vnd.openxmlformats-officedocument.presentationml.slide application/vnd.openxmlformats-officedocument.wordprocessingml.document application/vnd.openxmlformats-officedocument.wordprocessingml.template application/vnd.ms-excel.addin.macroEnabled.12 application/vnd.ms-excel.sheet.binary.macroEnabled.12

Extension .xlsx .xltx .potx .ppsx .pptx .sldx .docx .dotx .xlam .xlsb

N.B. These MIME types were added to IIS7 as noted in KB936496.

Вам также может понравиться