title: Web.Config httpModules Internal Server Error
body: <p>I updated my <code>web.config</code> to support URL Rewriting but when I use it on my web server it shows the error:</p>
  
  <blockquote>
    <p>Internal Server Error The server
    encountered an internal error or
    misconfiguration and was unable to
    complete your request. Please contact
    the server administrator to inform of
    the time the error occurred and of
    anything you might have done that may
    have caused the error.</p>
    
    <p>More information about this error may
    be available in the server error log.</p>
  </blockquote>
  
  <p>My web.config is as follows:</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;configSections&gt;
      &lt;section name="rewriter" 
               requirePermission="false"                           
               type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter"/&gt;
    &lt;/configSections&gt;
  
    &lt;rewriter&gt;
      &lt;rewrite url="~/subjects/(.+).aspx" to="~/subject.aspx?ebook-subject=$1"/&gt;
      &lt;rewrite url="~/books/(.+).aspx" to="~/book.aspx?ebook-name=$1"/&gt;
      &lt;rewrite url="~/booklinks/(.+).aspx" to="~/booklink.aspx"/&gt;
      &lt;rewrite url="~/subcategories/(.+).aspx" to="~/subcategory.aspx?ebook-subcategory=$1"/&gt;
      &lt;rewrite url="~/categories/(.+).aspx" to="~/category.aspx?ebook-category=$1"/&gt;
      &lt;rewrite url="~/explainsubjects/(.+).aspx" to="~/explainsubject.aspx?ebook-subject=$1"/&gt;
  
      &lt;rewrite url="~/search/search.aspx" to="~/search.aspx"/&gt;
      &lt;rewrite url="~/search/searchresults.aspx" to="~/searchresults.aspx"/&gt;
    &lt;/rewriter&gt;
    &lt;system.web&gt;
      &lt;httpModules&gt;
        &lt;add name="UrlRewriter" 
             type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/&gt;
      &lt;/httpModules&gt;
      &lt;compilation debug="true"/&gt;
      &lt;authentication mode="Windows"/&gt;
      &lt;customErrors mode="Off" defaultRedirect="GenericErrorPage.htm"&gt;
      &lt;/customErrors&gt;
      &lt;pages/&gt;
    &lt;/system.web&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>What am I doing wrong?</p>