title: Log4Net not writing to the database
body: <p>I've checked the connection string (I got it from the server explorer).</p>
  
  <p>I've checked the commandText in log4net config.</p>
  
  <p>I've checked the database permissions (integrated security is fine and works outside of the log4net class).</p>
  
  <p>I've checked the repository's configured property (it is configured, it finds the config file fine).</p>
  
  <p>I've also checked that the fields defined in the config file match the attributes (field size etc.) of the table in the database.</p>
  
  <p>Any ideas?</p>
  
  <p>When I'm debugging it seems to be hitting all the right methods at all the right times, with no exceptions raised.</p>
  
  <pre><code>&lt;log4net&gt;
  
    &lt;appender name="ADONetAppender" type="log4net.Appender.ADONetAppender"&gt;
      &lt;bufferSize value="1" /&gt;
      &lt;connectionType value="System.Data.SqlClient.SqlConnection, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /&gt;
      &lt;connectionString value="" /&gt;
      &lt;commandText value="INSERT INTO dbo.Log4Net ([Date],[Thread],[Level],[Logger],[Message]) VALUES ('01-01-2001', 'test', 'test', 'test', 'test')"/&gt;
      &lt;!--&lt;commandText value="INSERT INTO dbo.Log4Net ([Date],[Thread],[Level],[Logger],[Message],[Exception],[MachineName],[CultureId],[SourcePage],[Details],[Method]) VALUES (@log_date, @thread, @log_level, @logger, @message, @exception, @MachineName, @CultureId, @SourcePage, @Details, @Method)" /&gt;--&gt;
      &lt;parameter&gt;
        &lt;parameterName value="@log_date"/&gt;
        &lt;dbType value="DateTime"/&gt;
        &lt;layout type="log4net.Layout.RawTimeStampLayout"/&gt;
      &lt;/parameter&gt;
      &lt;parameter&gt;
        &lt;parameterName value="@thread"/&gt;
        &lt;dbType value="String"/&gt;
        &lt;size value="255"/&gt;
        &lt;layout type="log4net.Layout.PatternLayout"&gt;
          &lt;conversionPattern value="%thread"/&gt;
        &lt;/layout&gt;
      &lt;/parameter&gt;
      &lt;parameter&gt;
        &lt;parameterName value="@log_level"/&gt;
        &lt;dbType value="String"/&gt;
        &lt;size value="50"/&gt;
        &lt;layout type="log4net.Layout.PatternLayout"&gt;
          &lt;conversionPattern value="%level"/&gt;
        &lt;/layout&gt;
      &lt;/parameter&gt;
  
  ...more parameters
  
      &lt;securitycontext type="log4net.Util.WindowsSecurityContext"&gt;
        &lt;credentials value="Process"&gt;
        &lt;/credentials&gt;
      &lt;/securitycontext&gt;
    &lt;/appender&gt;
  
    &lt;appender name="FileAppender" type="log4net.Appender.FileAppender"&gt;
      &lt;param name="File" value="LogTest.txt"/&gt;
      &lt;param name="AppendToFile" value="true"/&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;param name="ConversionPattern" value="%d [%t] %-2p %c [%x] - %m%n"/&gt;
      &lt;/layout&gt;
    &lt;/appender&gt;
  
    &lt;root&gt;
      &lt;appender-ref ref="ADONetAppender"/&gt;
      &lt;appender-ref ref="FileAppender"/&gt;
    &lt;/root&gt;
  
  &lt;/log4net&gt;
  </code></pre>
  
  <p>It's writing to neither appender.</p>