title: Elmah not working with asp.net site
body: <p>I've tried to use elmah with my asp.net site but whenever I try to go to <a href="http://localhost:port/elmah.axd" rel="noreferrer">http://localhost:port/elmah.axd</a> I get resource not found exception. My web.config is given below.</p>
  
  <pre><code>    &lt;?xml version="1.0"?&gt;
      &lt;configuration&gt;
        &lt;configSections&gt;
          &lt;sectionGroup name="elmah"&gt;
            &lt;section name="security" requirePermission="false" 
                    type="Elmah.SecuritySectionHandler, Elmah"/&gt;
            &lt;section name="errorLog" requirePermission="false" 
                    type="Elmah.ErrorLogSectionHandler, Elmah" /&gt;
            &lt;section name="errorMail" requirePermission="false" 
                    type="Elmah.ErrorMailSectionHandler, Elmah" /&gt;
            &lt;section name="errorFilter" requirePermission="false" 
                    type="Elmah.ErrorFilterSectionHandler, Elmah"/&gt;
          &lt;/sectionGroup&gt;
        &lt;/configSections&gt;
        &lt;elmah&gt;
          &lt;security allowRemoteAccess="0" /&gt;
          &lt;errorLog type="Elmah.SqlErrorLog, Elmah" 
                   connectionStringName="elmah-sql" /&gt;
          &lt;errorMail
                  from="my@account"
                  to="myself"
                  subject="ERROR From Elmah:"
                  async="true"
                  smtpPort="587"
                  smtpServer="smtp.gmail.com"
                  userName="my@account"
                  password="mypassword" /&gt;
        &lt;/elmah&gt;
  
        &lt;connectionStrings&gt;
          &lt;add name="elmah-sql" connectionString="data source=(sqlserver); 
                 database=elmahdb;
               integrated security=false;User ID=user;Password=password"/&gt;
        &lt;/connectionStrings&gt;
        &lt;system.web&gt;
          &lt;compilation debug="true"&gt;
            &lt;assemblies&gt;
              &lt;add assembly="Elmah, Version=1.0.10617.0, Culture=neutral, 
                 PublicKeyToken=null"/&gt;
            &lt;/assemblies&gt;
          &lt;/compilation&gt;
          &lt;authentication mode="Windows"/&gt;
  
          &lt;httpHandlers&gt;
            &lt;remove verb="*" path="*.asmx"/&gt;
            &lt;add verb="*" path="*.asmx" validate="false" 
              type="System.Web.Script.Services.ScriptHandlerFactory, 
                 System.Web.Extensions, Version=3.5.0.0, Culture=neutral, 
                    PublicKeyToken=31BF3856AD364E35"/&gt;
            &lt;add verb="*" path="*_AppService.axd" validate="false" 
                 type="System.Web.Script.Services.ScriptHandlerFactory, 
                 System.Web.Extensions, Version=3.5.0.0, Culture=neutral, 
                     PublicKeyToken=31BF3856AD364E35"/&gt;
            &lt;add verb="GET,HEAD" path="ScriptResource.axd" 
                   type="System.Web.Handlers.ScriptResourceHandler, 
                 System.Web.Extensions, Version=3.5.0.0, Culture=neutral, 
                      PublicKeyToken=31BF3856AD364E35" validate="false"/&gt;
          &lt;/httpHandlers&gt;
          &lt;httpModules&gt;
            &lt;add name="ScriptModule" type="System.Web.Handlers.ScriptModule, 
                  System.Web.Extensions, Version=3.5.0.0, Culture=neutral, 
                  PublicKeyToken=31BF3856AD364E35"/&gt;
          &lt;/httpModules&gt;
        &lt;/system.web&gt;
  
        &lt;system.webServer&gt;
          &lt;validation validateIntegratedModeConfiguration="false"/&gt;
          &lt;modules runAllManagedModulesForAllRequests="true"&gt;
            &lt;remove name="ScriptModule"/&gt;
            &lt;add name="ScriptModule" preCondition="managedHandler" 
                  type="System.Web.Handlers.ScriptModule, 
                 System.Web.Extensions, Version=3.5.0.0, Culture=neutral, 
                   PublicKeyToken=31BF3856AD364E35"/&gt;
            &lt;add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah"/&gt;
            &lt;add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/&gt;
            &lt;add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah"/&gt;
          &lt;/modules&gt;
  
          &lt;handlers&gt;
            &lt;remove name="WebServiceHandlerFactory-Integrated"/&gt;
            &lt;remove name="ScriptHandlerFactory"/&gt;
            &lt;remove name="ScriptHandlerFactoryAppServices"/&gt;
            &lt;remove name="ScriptResource"/&gt;
            &lt;add name="ScriptHandlerFactory" verb="*" path="*.asmx" 
                  preCondition="integratedMode" 
                 type="System.Web.Script.Services.ScriptHandlerFactory, 
                      System.Web.Extensions, Version=3.5.0.0, 
                 Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
            &lt;add name="ScriptHandlerFactoryAppServices" verb="*" 
              path="*_AppService.axd" preCondition="integratedMode" 
                 type="System.Web.Script.Services.ScriptHandlerFactory, 
                   System.Web.Extensions, Version=3.5.0.0, 
                 Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
            &lt;add name="ScriptResource" preCondition="integratedMode" 
              verb="GET,HEAD" path="ScriptResource.axd" 
                 type="System.Web.Handlers.ScriptResourceHandler, 
              System.Web.Extensions, Version=3.5.0.0, 
                 Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
            &lt;add name="Elmah" verb="POST,GET,HEAD" path="elmah.axd" 
                         preCondition="integratedMode" 
                 type="Elmah.ErrorLogPageFactory, Elmah"/&gt;
          &lt;/handlers&gt;
        &lt;/system.webServer&gt;
      &lt;/configuration&gt;
  </code></pre>
  
  <p>EDIT: Elmah = (Error Logging Modules and Handlers)<br>
  <a href="http://code.google.com/p/elmah/" rel="noreferrer">http://code.google.com/p/elmah/</a></p>