Configuring wildcard mappings on IIS

Description Article
Table of Contents
Summary

If running on IIS 5.x, IIS 6.x, or IIS 7 classic mode, a wild card mapping for “.*” must be configured on IIS in order to indicate IIS to redirect all requests through ASP.NET engine.

Operations
Installing wildcard mapping on IIS 5.x and IIS 6.x
How to do it
To configurate a new wildcard mapping must be inserted and mapped to the aspnet_isapi.dll:
  1. Open IIS, right-click on your web site, and choose properties.
  2. Click the “Home Directory” tab, then “Configuration
  3. For a wildcard mapping on IIS 5, add extension “.*”.  For IIS 6, choose “Insert” and add the “aspnet_isapi.dll” executable. This is located on %windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll (,NET 2.0) inside the wildcard application maps area;
  4. Make sure “Script Engine“;
  5. Make sure “Verify file exists” is unchecked.

 

 

Installing wildcard mapping on IIS 7 Classic Mode

IIS 7 mappings are done in “web.config” file.

Remarks

Do not add these if you are using IIS 7 Integrated mode (the default): It may cause Server Unavailable on your image requests. None of the steps on this page are needed on IIS7 Integrated (default), and will actually cause problems.

How to do it

 32 Bits Machine

<configuration>
    ...
  <system.webserver>

    <handlers>
      <add name="ASPNET" path="*" verb="*" modules="IsapiModule"
      scriptprocessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourcetype="Unspecified"
      requireaccess="None" precondition="classicMode,runtimeVersionv2.0,bitness32">
    </add>
  </handlers>

  </system.webserver>
    ...
</configuration>

64 Bits Machine

<configuration>
    ...
  <system.webserver>
    <handlers>
      <add name="ASPNET" path="*" verb="*" modules="IsapiModule"
      scriptprocessor="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll"
      resourcetype="Unspecified" requireaccess="None" precondition="classicMode,runtimeVersionv2.0,bitness64">
      </add>
    </handlers>
  </system.webserver>
    ...
</configuration>