Article ID: 326965 - View products that this article applies to.
This article was previously published under Q326965
IMPORTANT: This article contains information about editing the metabase. Before you edit the metabase, verify that you have a backup copy that you can restore if a problem occurs. For information about how to do this, see the "Configuration Backup/Restore" Help topic in Microsoft Management Console (MMC).
When you request a file from an IIS 6.0 Web server, and the file has a file name extension that is not a defined MIME type on the Web server, you receive the following error message:
HTTP Error 404 - File or directory not found.
Earlier versions of IIS include a wildcard character MIME mapping, which permits IIS to serve any file regardless of its extension. IIS 6.0 does not include this wildcard character MIME mapping and does not serve any type of extension that is not defined at the MimeMap node in the IIS metabase.
WARNING: If you edit the metabase incorrectly, you can cause serious problems that may require you to reinstall any product that uses the metabase. Microsoft cannot guarantee that problems that result if you incorrectly edit the metabase can be solved. Edit the metabase at your own risk.
NOTE: Always back up the metabase before you edit it.
To define a MIME type for a specific extension, follow these steps:
Note You should only add the wildcard mapping to the IIS MIME map as a temporary solution during troubleshooting. After you have determined that a missing MIME type is the cause of the issue, remove the wildcard mapping and add the specific mapping for the MIME type that you need to serve.
More information about working with MIME types is available in the product documentation. To view this documentation, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/ms775148.aspxYou can also access the product documentation through the IIS Manager. For more information about how to access this Help feature, click the following article number to view the article in the Microsoft Knowledge Base:
(https://support.microsoft.com/kb/815127/ )How to access IIS 6.0 Help documentation
Article ID: 326965 - Last Review: December 3, 2007 - Revision: 6.6