Monday, August 16, 2010

Spring.Net and Common.Logging 2.0

Versions 1.2 and 1.3 of Spring.Net bind to Common.Logging 1.2. If you are using or need to use v2.0 of Common.Logging, you can use an assembly redirect to force the assembly loader to the updated version. Put the following into your application’s configuration file:

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Common.Logging"
publicKeyToken="AF08829B84F0328E" />
<bindingRedirect oldVersion="1.2.0.0"
newVersion="2.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

3 comments:

  1. Very nice post, thanks! It helps me.

    ReplyDelete
  2. Thank you, saved me some grief with this. :)

    ReplyDelete
  3. Thanks. Very help full. BTW - the ReflectInsight Live Viewer now has a Common.Logging extension as well. This is great if you want to view logging messages live.

    http://insightextensions.codeplex.com/



    ReplyDelete