Error - Mediachase.Commerce log4net Version=1.2.10.0 (Version 8.16)

Vote:
 

Hi

I have a strange error in my installation of Episerver Commerce.

I have install all nuget packages, and for some developers are getting the error with log4net. We have try many things, but nothing works.

Have some have the same problem?

Here is the error:

#138939
Sep 23, 2015 21:05
Vote:
 

Hi,

Which version of log4net do you have in the bin folder? What do you have in bindingRedirect (web.config)?

/Q

#138950
Sep 23, 2015 22:14
Vote:
 

Hi Quan

We dont have any dependentAssembly in web.config to log4net.

We have vercion 1.2.13 on bin folder...

Juan

#138963
Sep 24, 2015 10:12
Vote:
 

Hi,

I think that's the problem. Commerce 8.16.1 has a hard dependency on log4net 1.12.10 (this restriction is lifted in Commerce 8.17/CMS9).

What you can do now is to add this to your web.config/

      <dependentAssembly>
        <assemblyIdentity name="log4net" publicKeyToken="xxx" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-1.3.0.0" newVersion="1.2.13.0" />
      </dependentAssembly>

Regards,

/Q

#138964
Sep 24, 2015 10:18
Vote:
 

Hi Quan

Thanks for quick reply.

The thing is that we allready have a lognet of a specific vercion, and we are not able to upgrade och downgrade.

But I manage to fix this with gacutil.exe -i log4net.dll

This make possible to have 2 different vercion of the same dll.

Thanks

#138965
Sep 24, 2015 10:47
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.