Article ID: 2520479 - View products that this article applies to.
Consider the following scenario. You have a Microsoft Windows 7 server running Microsoft Internet Information Services (IIS) and the .NET Framework 4.0. Your IIS web applications host web services (for example .asmx or WCF-based services) or JSON web services using .aspx page methods. You install Service Pack 1 for Windows 7. After installing the service pack, your web applications may begin to suffer from undesirable or unexpected behavior including (but not limited to):
When Windows 7 SP1 is installed it includes the IIS support for extensionless URLs (please see http://support.microsoft.com/kb/980368 for details of this change that is now included in Windows 7 SP1). Once this support is added, it uncovers problems with applications that rely on PathInfo for processing requests. Web services applications such as .asmx or WCF, or JSON webservices using .aspx page methods, are the most common applications to be affected by this.
When the initial request URL is issued by the client to the server, it is in a form similar to /MyWebService.asmx/SomeDataForTheService. When the .NET Framework 4.0 is installed on the server along with Windows 7 SP1, this type of URL is first received and processed by the ASP.NET 4.0 extensionless URL handling logic before the requested web service has a chance to process the request. The result of this order of operations can include the behavior listed in the Symptoms section of this article.
There are two options to choose from to fix this issue.
Install the .NET Framework 4 GDR Update from the following location:
Update for Microsoft .NET Framework 4
To work around this problem without installing the above update, reorder the handlers in the applicationHost.config file so that all three .NET 4.0 extensionless URL handler definitions are near the bottom of the handler mappings section. Below is an example of the bottom of the reordered handler mappings section with the extensionless URL definitions moved to the bottom of the section. Note that the example below uses new handler names for the extensionless URL handler entries. When you move the handler entries in your own applicationHost.config file, you should subsequently rename the handlers using the names shown below – e.g. "ExtensionlessUrlHandler-ISAPI-4.0_32bit", "ExtensionlessUrlHandler-ISAPI-4.0_64bit", and "ExtensionlessUrlHandler-Integrated-4.0".
IMPORTANT: This configuration sample is illustrated for example purposes only and is not meant to be copy and pasted into your configuration file. It does not contain the entire handlers section of a standard configuration file but instead shows just the pertinent information described in this article. Always backup your configuration files before making any changes.
Microsoft has confirmed that this is a problem in the products listed in the applies-to section.
(http://go.microsoft.com/fwlink/?LinkId=151500)for other considerations.
Article ID: 2520479 - Last Review: March 23, 2011 - Revision: 10.0