Older versions of log4net has been signed with a different certificate than the new versions of log4net. That means that they have different public tokens and regular
<assemblyBinding> doesn’t work. This post will show you have you can use both versions side-by-side.
To be able to do that you need to do the following:
- Start by downloading the old version (version of 126.96.36.199).
- Rename the downloaded binary to
- Include it in your startup project with Build action set to
Noneand “Copy if newer”
- Tell .NET where it can find the old version
<runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="log4net" publicKeyToken="1b44e1d426115821" /> <codeBase version="188.8.131.52" href="log4net.1.2.10.dll" /> </dependentAssembly> </assemblyBinding> </runtime>
The href attributes identifies where the old version is. Hence all other requests for log4net will point on the new version.