title: HTTPHandler failing on IIS 7.5, using system.webserver
body: <p>i'm getting the following error when I try to access any .asmx as well as my custom http handler. I've already moved that to system.webserver too.. any ideas?</p>
  
  <pre><code>HTTP Error 500.19 - Internal Server Error
  
  The requested page cannot be accessed because the related configuration data for the page is invalid.
      &lt;add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="managedHandler" /&gt;
  </code></pre>
  
  <p>Web.Config:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=169433
    --&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/&gt;
    &lt;/configSections&gt;
    &lt;connectionStrings&gt;
    &lt;/connectionStrings&gt;
    &lt;system.web&gt;
      &lt;customErrors mode="Off"&gt;&lt;/customErrors&gt;
      &lt;compilation debug="true" targetFramework="4.0"&gt;
        &lt;assemblies&gt;
          &lt;add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/&gt;
          &lt;add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
          &lt;add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
        &lt;/assemblies&gt;
      &lt;/compilation&gt;
      &lt;httpRuntime maxRequestLength="2147483647"/&gt;
      &lt;webServices&gt;
        &lt;protocols&gt;
          &lt;add name="HttpGet"/&gt;
          &lt;add name="HttpPost"/&gt;
        &lt;/protocols&gt;
      &lt;/webServices&gt;
    &lt;/system.web&gt;
    &lt;system.webServer&gt;
      &lt;modules runAllManagedModulesForAllRequests="true"/&gt;
      &lt;handlers&gt;
        &lt;add name="SpartHandler" verb="*" path="*.sparta" type="SpartaMessage_WebServices.IHTTPTransfer, SpartaMessage_WebServices" resourceType="Unspecified"/&gt;
      &lt;/handlers&gt;
    &lt;/system.webServer&gt;
    &lt;system.net&gt;
    &lt;/system.net&gt;
  &lt;/configuration&gt;
  </code></pre>