title: ELMAH missing connection string
body: <p>I am trying to configure <a href="http://code.google.com/p/elmah/" rel="nofollow">ELmah</a> to work with my mvc app. </p>
  
  <p>The error says </p>
  
  <pre><code>Connection string is missing for the SQL error log
  </code></pre>
  
  <p>But I checked my Web.config and the connectionString was there. I am not sure what is causing the problem. In the ErrorLogPage.cs, the connectionString always has null value</p>
  
  <pre><code> public SqlErrorLog(IDictionary config)
          {
              if (config == null)
                  throw new ArgumentNullException("config");
  
              string connectionString = ConnectionStringHelper.GetConnectionString(config);
  
              //
              // If there is no connection string to use then throw an 
              // exception to abort construction.
              //
  
              if (connectionString.Length == 0)
                  throw new ApplicationException("Connection string is missing for the SQL error log.");
  
              _connectionString = connectionString;
  
              ...
          }
  </code></pre>
  
  <p>web.config</p>
  
  <pre><code>&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;connectionStrings&gt;
      &lt;add name="sql-elmah" providerName="System.Data.SqlClient" connectionString="Data Source=xxx;Initial Catalog=xxx;user=xxx;password=xxx" /&gt;
      &lt;add name="EFDbContext" providerName="System.Data.SqlClient" connectionString="Data Source=yyy;Initial Catalog=yyy;user=yyy;password=yyy;" /&gt;
    &lt;/connectionStrings&gt;
  
    &lt;elmah&gt;
      &lt;security allowRemoteAccess="0" /&gt;
      &lt;errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="sql-elmah" /&gt;
    &lt;/elmah&gt;
  
    &lt;system.web&gt;
        &lt;httpHandlers&gt;
          &lt;add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" /&gt;
        &lt;/httpHandlers&gt;
  
        &lt;httpModules&gt;
          &lt;add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/&gt;
        &lt;/httpModules&gt;
    &lt;/system.web&gt;
  
    &lt;system.webServer&gt;
      &lt;validation validateIntegratedModeConfiguration="false" /&gt;
  
      &lt;modules&gt;
        &lt;add name="Elmah.ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" /&gt;
      &lt;/modules&gt;
  
      &lt;handlers&gt;
        &lt;remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" /&gt;
        &lt;remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" /&gt;
        &lt;remove name="ExtensionlessUrlHandler-Integrated-4.0" /&gt;
        &lt;add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" /&gt;
        &lt;add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" /&gt;
        &lt;add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /&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>