title: Log4net configuration from assembly attribute does not load configuration file
body: <p>I have the following file Log4net.config in my bin directory:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;log4net xmlns="urn:log4net"&gt;
      &lt;appender name="FileAppender" type="log4net.Appender.FileAppender"&gt;
          &lt;param name="file" value="MyLogFile.log"/&gt;
          &lt;param name="appendToFile" value="false"/&gt;
          &lt;layout type="log4net.Layout.PatternLayout"&gt;
              &lt;param name="ConversionPattern" value="%date (%logger) [%5level] - %message" /&gt;
          &lt;/layout&gt;
      &lt;/appender&gt;
      &lt;appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender"&gt;
          &lt;layout type="log4net.Layout.PatternLayout"&gt;
              &lt;param name="ConversionPattern" value="%date (%logger) [%5level] - %message" /&gt;
          &lt;/layout&gt;
      &lt;/appender&gt;
      &lt;root&gt;
          &lt;level value="DEBUG" /&gt;
          &lt;appender-ref ref="FileAppender" /&gt;
          &lt;appender-ref ref="ConsoleAppender"/&gt;
      &lt;/root&gt;
      &lt;logger name="NHibernate" additivity="false"&gt;
          &lt;level value="WARN"/&gt;
      &lt;/logger&gt;
  &lt;/log4net&gt;
  </code></pre>
  
  <p>And the following code in my AssemblyInfo.cs file:</p>
  
  <pre class="lang-cs prettyprint-override"><code>using System.Reflection;
  using System.Runtime.CompilerServices;
  using System.Runtime.InteropServices;
  
  [assembly: AssemblyVersion("1.0.0.0")]
  [assembly: AssemblyTitle("My Project")]
  [assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log4net.config", Watch = true)]
  </code></pre>
  
  <p>When I run the program, I get the following log4net debug output:</p>
  
  <pre><code>log4net: log4net assembly [log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821]. Loaded from [D:\Data\Projects\Active\Clients\MyProject\src\MyProject.Importer\bin\Debug\log4net.dll]. (.NET Runtime [4.0.30319.1] on Microsoft Windows NT 6.1.7600.0)
  log4net: DefaultRepositorySelector: defaultRepositoryType [log4net.Repository.Hierarchy.Hierarchy]
  log4net: DefaultRepositorySelector: Creating repository for assembly [MyCompany.Framework, Version=2.1.72.0, Culture=neutral, PublicKeyToken=null]
  log4net: DefaultRepositorySelector: Assembly [MyCompany.Framework, Version=2.1.72.0, Culture=neutral, PublicKeyToken=null] Loaded From [D:\Data\Projects\Active\Clients\MyProject\src\MyProject.Importer\bin\Debug\MyCompany.Framework.dll]
  log4net: DefaultRepositorySelector: Assembly [MyCompany.Framework, Version=2.1.72.0, Culture=neutral, PublicKeyToken=null] does not have a RepositoryAttribute specified.
  log4net: DefaultRepositorySelector: Assembly [MyCompany.Framework, Version=2.1.72.0, Culture=neutral, PublicKeyToken=null] using repository [log4net-default-repository] and repository type [log4net.Repository.Hierarchy.Hierarchy]
  log4net: DefaultRepositorySelector: Creating repository [log4net-default-repository] using type [log4net.Repository.Hierarchy.Hierarchy]
  The thread 'vshost.RunParkingWindow' (0xd30) has exited with code 0 (0x0).
  The thread '&lt;No Name&gt;' (0x15d0) has exited with code 0 (0x0).
  log4net: Hierarchy: Shutdown called on Hierarchy [log4net-default-repository]
  </code></pre>
  
  <p>Log4net loads, but doesn't seem to be processing my config file. When I comment out the attribute in AssemblyInfo.cs and run the following code during my program initialization, it works as expected:</p>
  
  <pre class="lang-cs prettyprint-override"><code>var log4netConfig = "Log4net.config";
  var log4netInfo = new FileInfo(log4netConfig);
  log4net.Config.XmlConfigurator.ConfigureAndWatch(log4netInfo);
  </code></pre>
  
  <p>What am I doing wrong? I want to load from AssemblyInfo.cs.</p>