0

I installed Easygelf.log4net package for log4net version 1.2.0.13 but I am getting error

Could not load file or assembly 'log4net, Version=1.2.13.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I tried adding the below to the web.config but no luck

<dependentAssembly>
        <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-1.2.13.0" newVersion="1.2.13.0" />
      </dependentAssembly>
4

1 回答 1

2

检查项目中引用的程序集版本,并相应地更改旧版本和新版本。我也遇到了同样的错误,我的项目正在使用 1.2.15.0 。所以我更改了程序集映射信息-

于 2016-11-21T15:12:16.077 回答