Try our conversational search powered by Generative AI!

Could not load file or assembly 'log4net, Version=1.2.10.0

Vote:
 

Upgrading EPiServer to the latest version, I get the error: 'Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'.

After some research I found out that EPiServer.Common.Framework.Impl.dll (version 7.5.446.0) has a different version reference on log4net.dll as EPiServer.Logging.Log4Net.dll (Version 2.0.0.0).

EPiServer.Logging.Log4Net has a reference on log4net with Version 1.2.13.0 and PublicKeyToken 669e0ddf0bb1aa2a.
and
EPiServer.Common.Framework.Impl has a reference on log4net with Version 1.2.10.0 and PublicKeyToken 1b44e1d426115821.

Unfortunately I can't drive the assembly through web.config, because the PublicKeyToken has been changed.

This will not work:

   
   

You will not see the error if you have in your assembly cache (GAC, C:\Windows\assembly\) log4net Version 1.2.10.0.

I have to wait of a new release from EPiServer.CommonFramework to fix this problem or is there any other way?

Thank you

#143100
Jan 12, 2016 15:01
Vote:
 

Or you can downgrade EPiServer Logging

Install-Package EPiServer.Logging.Log4Net -Version 1.1.0

#143107
Jan 12, 2016 16:00
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.