You are currently offline, waiting for your internet to reconnect

FIX: "404.17" error when you try to access extensionless URLs on websites that are hosted in IIS 7.0 or in IIS 7.5

SYMPTOMS
Consider the following scenario:
  • You have a computer that is running Internet Information Services (IIS) 7.0 or IIS 7.5, and you install the Microsoft .NET Framework 4.0.
  • You install Service Pack 1 (SP1) for Windows 7 and SP1 for Windows Server 2008 R2.
  • You configure an ASP.NET-based website that uses wildcard MIME maps.
In this scenario, the wildcard MIME maps may not work correctly. When a client request tries to access an extensionless URL that links to an extensionless static file on the website, the client request fails. Additionally, you receive an error message that resembles the following:
Server Error

----------------------------------------------------------------------------------------------

Error Summary

HTTP Error 404.17 - Not Found

The requested content appears to be script and will not be served by the static file handler.

Detailed Error Information:

Module StaticFileModule

Notification ExecuteRequestHandler

Handler StaticFile

Error Code 0x80070032
CAUSE
The issue occurs because there is a conflict between IIS support for extensionless URLs and extensionless URL functionality in ASP.NET 4.0.

When a client request is sent to IIS for a static file that has no extension, MIME matching happens internally, and IIS determines that there is no file name extension. Then, IIS tries to look up the file name extension attribute that contains an empty string value. However, IIS prevents adding a MIME map that has an empty string.
RESOLUTION
This hotfix enables the IIS Configuration to allow an empty string MIME Map entry in configuration to correctly configure Extensionless URLs through the static file handler and MIME Maps. Therefore, you must also change the application configuration to add the empty string MIME Map, whereas, before you installed ASP.NET 4.0 Extensionless URLs, a wildcard "*" map may have worked.

After you install the hotfix for the schema, run the following command to configure the empty string MimeMap:
appcmd.exe set config "TestSite" -section:system.webServer/staticContent /+"[fileExtension='""""""',mimeType='application/octet-stream']"

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

You must have IIS 7.5 installed to apply this hotfix. This hotfix can be installed on a computer that is running one of the following operating systems:
  • Windows 7
  • Windows 7 SP1
  • Windows Server 2008 R2
  • Windows Server 2008 R2 SP1

Restart requirement

You must restart the computer if IIS is running when you apply this update.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The English (United States) version of this hotfix uses a Microsoft Windows Installer package to install the hotfix. The dates and the times for these files are listed in Coordinated Universal Time (UTC) in the following table. When you view the file information, the date is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
For all supported x86-based versions of Windows 7
File nameFile versionFile sizeDateTimePlatform
Iis_schema.xmlNot Applicable81,7461-Dec-1123:35Not Applicable
Iis_schema.xmlNot Applicable82,0051-Dec-1123:31Not Applicable
For all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
Iis_schema.xmlNot Applicable81,7461-Dec-1123:34Not Applicable
Iis_schema.xmlNot Applicable82,0051-Dec-1123:30Not Applicable
For all supported IA-64-based versions of Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
Iis_schema.xmlNot Applicable81,7461-Dec-1123:27Not Applicable
Iis_schema.xmlNot Applicable82,0051-Dec-1123:23Not Applicable

Additional file information

Additional file information for Windows 7 and for Windows Server 2008 R2
Additional files for all supported x86-based versions of Windows 7
File nameUpdate.mum
File versionNot Applicable
File size3,295
Date (UTC)05-Dec-2011
Time (UTC)21:15
File nameX86_495522871fb9f70bbabe4324f7501bea_31bf3856ad364e35_6.1.7601.21872_none_fc6b7ca18f7c6faf.manifest
File versionNot Applicable
File size707
Date (UTC)05-Dec-2011
Time (UTC)21:15
File nameX86_5059877c40338491fe1789555d16b8f4_31bf3856ad364e35_6.1.7600.21103_none_2264851d34672dd4.manifest
File versionNot Applicable
File size707
Date (UTC)05-Dec-2011
Time (UTC)21:15
File nameX86_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.1.7600.21103_none_119dc8052f049c7d.manifest
File versionNot Applicable
File size346,260
Date (UTC)05-Dec-2011
Time (UTC)21:23
File nameX86_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.1.7601.21872_none_13379d2b2c647f67.manifest
File versionNot Applicable
File size346,260
Date (UTC)05-Dec-2011
Time (UTC)21:23
Additional files for all supported x64-based versions of Windows 7 and of Windows Server 2008 R2
File nameAmd64_5178a2bf0194e6354fac9697ac9cd635_31bf3856ad364e35_6.1.7601.21872_none_ee1712d4fbc999aa.manifest
File versionNot Applicable
File size1,064
Date (UTC)05-Dec-2011
Time (UTC)21:17
File nameAmd64_7404652d29cdbd630db471f92ff0f815_31bf3856ad364e35_6.1.7600.21103_none_f1f93565ebd19fc8.manifest
File versionNot Applicable
File size1,064
Date (UTC)05-Dec-2011
Time (UTC)21:16
File nameAmd64_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.1.7600.21103_none_6dbc6388e7620db3.manifest
File versionNot Applicable
File size346,266
Date (UTC)05-Dec-2011
Time (UTC)21:28
File nameAmd64_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.1.7601.21872_none_6f5638aee4c1f09d.manifest
File versionNot Applicable
File size346,266
Date (UTC)05-Dec-2011
Time (UTC)21:28
File nameUpdate.mum
File versionNot Applicable
File size3,737
Date (UTC)05-Dec-2011
Time (UTC)21:17
File nameWow64_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.1.7600.21103_none_78110ddb1bc2cfae.manifest
File versionNot Applicable
File size320,760
Date (UTC)03-Dec-2011
Time (UTC)06:16
File nameWow64_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.1.7601.21872_none_79aae3011922b298.manifest
File versionNot Applicable
File size320,760
Date (UTC)03-Dec-2011
Time (UTC)05:58
Additional files for all supported IA-64-based versions of Windows Server 2008 R2
File nameIa64_59199f16cb0d815e898934c8e170686c_31bf3856ad364e35_6.1.7600.21103_none_15a0948a4f5ed832.manifest
File versionNot Applicable
File size1,062
Date (UTC)05-Dec-2011
Time (UTC)21:15
File nameIa64_ed3798550e72d4449f38dcf531590eb7_31bf3856ad364e35_6.1.7601.21872_none_737fffb88581f61a.manifest
File versionNot Applicable
File size1,062
Date (UTC)05-Dec-2011
Time (UTC)21:15
File nameIa64_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.1.7600.21103_none_119f6bfb2f02a579.manifest
File versionNot Applicable
File size346,263
Date (UTC)05-Dec-2011
Time (UTC)21:17
File nameIa64_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.1.7601.21872_none_133941212c628863.manifest
File versionNot Applicable
File size346,263
Date (UTC)05-Dec-2011
Time (UTC)21:17
File nameUpdate.mum
File versionNot Applicable
File size2,767
Date (UTC)05-Dec-2011
Time (UTC)21:15
File nameWow64_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.1.7600.21103_none_78110ddb1bc2cfae.manifest
File versionNot Applicable
File size320,760
Date (UTC)03-Dec-2011
Time (UTC)06:16
File nameWow64_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.1.7601.21872_none_79aae3011922b298.manifest
File versionNot Applicable
File size320,760
Date (UTC)03-Dec-2011
Time (UTC)05:58
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Properties

Article ID: 2646735 - Last Review: 02/06/2012 08:35:00 - Revision: 2.0

Microsoft ASP.NET 4, Microsoft Internet Information Services 7.5

  • kbautohotfix kbqfe kbhotfixserver kbfix kbexpertiseadvanced kbsurveynew KB2646735
Feedback
varClickTracking = 1; var varCustomerTracking = 1; var Route = "76500"; var Ctrl = ""; document.write("