title: Quartz.net and Common.Logging - Using Log4Net
body: <p>I'm using Quartz.net within a windows service.
  Currently, the trigger is not firing - I'd like to use the logging to find out why.</p>
  
  <p>I have edited my config file for the windows service:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;configSections&gt;
      &lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /&gt;
  
      &lt;sectionGroup name="common"&gt;
        &lt;section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" /&gt;
      &lt;/sectionGroup&gt;
  &lt;/configSections&gt;
  
  &lt;appSettings&gt;
      &lt;!--specific win service settings here--&gt;
  &lt;/appSettings&gt;
  
  &lt;common&gt;
      &lt;logging&gt;
          &lt;factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net"&gt;
              &lt;arg key="configType" value="INLINE"/&gt;
              &lt;arg key="configFile" value="c:\sched.log"/&gt;
              &lt;arg key="level" value="INFO" /&gt;
          &lt;/factoryAdapter&gt;
      &lt;/logging&gt;
  &lt;/common&gt;
  
  &lt;log4net&gt;
      &lt;appender name="EventLogAppender" type="log4net.Appender.EventLogAppender"&gt;
        &lt;layout type="log4net.Layout.PatternLayout"&gt;
          &lt;conversionPattern value="%d [%t] %-5p %l - %m%n" /&gt;
        &lt;/layout&gt;
      &lt;/appender&gt;
      &lt;root&gt;
        &lt;level value="INFO" /&gt;
        &lt;appender-ref ref="EventLogAppender" /&gt;
      &lt;/root&gt;
  &lt;/log4net&gt;
  </code></pre>
  
  <p>My file structure is as follows:</p>
  
  <p><strong>C:\CompanyName</strong> - root dir for all projects<br>
  <strong>C:\CompanyName\build\bin</strong> - Output directory for all projects / class libraries in my solution<br>
  <strong>C:\CompanyName\lib</strong> - Where 3rd party binaries / dlls are put</p>
  
  <p>In my Windows Service project, I have a reference to Quartz (in the C:\CompanyName\lib folder)</p>
  
  <p>I have also added a reference to Common.Logging.Log4net.dll</p>
  
  <p>When I test my app, I get the following error:</p>
  
  <blockquote>
    <p>Could not load file or assembly
    'Common.Logging, Version=2.0.0.0,
    Culture=neutral,
    PublicKeyToken=af08829b84f0328e' or
    one of its dependencies. The located
    assembly's manifest definition does
    not match the assembly reference.
    (Exception from HRESULT:
    0x80131040)":"Common.Logging,
    Version=2.0.0.0, Culture=neutral,
    PublicKeyToken=af08829b84f0328e</p>
  </blockquote>