Skip to content

Service Extension Remover Overview

mikeobrien edited this page Sep 14, 2010 · 2 revisions

Some people (Including myself) don’t like the .svc extension to pollute their uri. The WcfRestContrib.Web.ServiceAnonymityModule module will automatically remove these for you.

On IIS7 (In an app domain using an integrated pipeline) simply add a reference to this http module and your good to go:

<configuration>
    <system.webServer>
        <modules>
          <add name="ServiceAnonymityModule" 
               type="WcfRestContrib.Web.ServiceAnonymityModule, WcfRestContrib"/>
        </modules>
    </system.webServer>
</configuration>

If you are on IIS7 and your app is not running in an app domain that uses an integrated pipeline or you are running on IIS6 you will need to reroute all requests through ASP.NET for this handler to work. On IIS6 you will need to add the handler under the “configuration/system.web/httpModules” section instead.

NOTE: This module traverses the web site directory tree on startup to build a mapping table. It will not automatically traverse the contents of virtual directories.