FAQ/Questions/Log4Net-Collision.md
... ...
@@ -0,0 +1,26 @@
1
+#Workaround for Log4Net version collision
2
+
3
+[[_TOC_]]
4
+
5
+##Question
6
+
7
+When upgrading to the latest version of Izenda, the website will not compile. The issue is with a third party tool I use that references Log4Net and it's not compatible due to Izenda using a differently signed Log4Net driver. How can I resolve this conflict?
8
+
9
+##Answer
10
+
11
+Back in January 2013, the public key of the signed DLL for Log4Net was changed. As such, tools developed before that date reference an old public key than the one Izenda uses. A possible work-around for this issue is to change your web.config to specifically add the assemblies in a dependent relationship using the public keys of Izenda's log4net and your own. The following example is what this could look like for you:
12
+
13
+```xml
14
+<dependentAssembly>
15
+ <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a"/>
16
+ <codeBase version="1.2.13.0" href="bin\log4net.oldkey\log4net.dll"/>
17
+ <bindingRedirect oldVersion="0.0.0.0-1.2.13.0" newVersion="1.2.13.0"/>
18
+</dependentAssembly>
19
+<dependentAssembly>
20
+ <assemblyIdentity name="log4net" publicKeyToken="YOUR_PUBLIC_KEY_TOKEN"/>
21
+ <codeBase version="1.2.13.0" href="bin\log4net.newkey\log4net.dll"/>
22
+ <bindingRedirect oldVersion="0.0.0.0-1.2.13.0" newVersion="1.2.13.0"/>
23
+</dependentAssembly>
24
+```
25
+
26
+You can find out more about the dependentAssembly tag [[at this link.|http://msdn.microsoft.com/en-us/library/0ash1ksb(v=vs.110).aspx]] You can find out what your assembly's public key token is by running the [[strong name tool.|http://blogs.msdn.com/b/wriju/archive/2008/07/01/how-to-find-public-key-token-for-a-net-dll-or-assembly.aspx]]
... ...
\ No newline at end of file