title: How to configure Microsoft.AspNet.FriendlyUrls in web.config
body: <p>I'm trying to add Microsoft.AspNet.FriendlyUrls to my web.config file. (This is necessary because I need to run the website on Mono and Mono doesn't yet support System.Web.HttpApplication.RegisterModule)</p>
  
  <p>The system.webServer section of web.config looks like this (simplified):</p>
  
  <pre><code>&lt;system.webServer&gt;
    &lt;validation validateIntegratedModeConfiguration="false"/&gt;
      &lt;modules runAllManagedModulesForAllRequests="true"&gt;
        &lt;add name="FriendlyUrls" type="Microsoft.AspNet.FriendlyUrls, FriendlyUrls" preCondition="managedHandler"/&gt;
       &lt;add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler"/&gt;
      &lt;/modules&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p>Attempting to run the site (from Visual Studio) gets this error:</p>
  
  <pre><code>Could not load file or assembly 'FriendlyUrls' or one of its dependencies. The system cannot find the file specified.
  </code></pre>
  
  <p>I've checked the bin directory and Microsoft.AspNet.FriendlyUrls.dll is there. Removing the FriendlyUrls line allows the app start just fine.</p>
  
  <p>How do I add the FriendlyUrls module to web.config? Is this the correct way to work the Mono problem?</p>
  
  <p>UPDATE
  Based on Jester's suggestion I changed the type:</p>
  
  <pre><code>type="Microsoft.AspNet.FriendlyUrls.FriendlyUrl, Microsoft.AspNet.FriendlyUrls"
  </code></pre>
  
  <p>Now the error is:</p>
  
  <pre><code>Microsoft.AspNet.FriendlyUrls.FriendlyUrl, Microsoft.AspNet.FriendlyUrls does not implement IHttpModule.
  </code></pre>