[ubuntu-mono] [Bug 1376206] Re: Mono: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of its dependencies

Antonius Riha antoniusriha at gmail.com
Sun Oct 19 11:51:34 UTC 2014


This is not a log4net package issue. It is a GoogleSync Plugin issue, because the plugin depends on the binary release from apache/log4net, which is ok on .NET/Windows but doesn't work on platforms that build and package log4net themselves like Debian or Ubuntu.
The reason for the public key mismatch is that the GoogleSync plugin probably references a log4net release that uses the apache signing key (Public Key Token: 1b44e1d426115821). This secret part of this signing key has not been published by the log4net upstream authors, hence it's impossible for Debian/Ubuntu packagers to sign their log4net dll with that key. (Note: Due to log4net being free software it needs to be distributed and built from source by the packagers)

** Package changed: log4net (Ubuntu) => ubuntu

** Changed in: ubuntu
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
CLI/Mono Uploaders, which is subscribed to log4net in Ubuntu.
https://bugs.launchpad.net/bugs/1376206

Title:
  Mono: Could not load file or assembly 'log4net, Version=1.2.10.0,
  Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of its
  dependencies

Status in Ubuntu:
  Invalid

Bug description:
  Hello,
  I try to run KeePass and GoogleSync Plugin. When I try to synchronize the KeePass database, it looks for the log4net library:

  ono: Assembly Ref addref GoogleSyncPlugin[0x1ab4650] -> System.Security[0x1ba38b0]: 3
  Mono: Assembly Ref addref System[0x16723d0] -> System[0x16723d0]: 17
  Mono: GC_MINOR: (Nursery full) pause 5,01ms, total 5,09ms, bridge 0,00ms promoted 1344K major 9216K los 3579K
  Mono: Assembly Loader probing location: '/usr/lib/mono/gac/log4net/1.2.10.0__1b44e1d426115821/log4net.dll'.
  Mono: Assembly Loader probing location: '/home/adrian/.local/share/KeePass/PluginCache/94LdF3x6oVuuI1D4Lioz/log4net.dll'.
  Mono: Assembly Loader probing location: '/usr/lib/log4net.dll'.
  Mono: Assembly Loader probing location: '/usr/lib/mono/4.5/Facades/log4net.dll'.
  Mono: Assembly Loader probing location: '/usr/lib/mono/gac/log4net/1.2.10.0__1b44e1d426115821/log4net.exe'.
  Mono: Assembly Loader probing location: '/home/adrian/.local/share/KeePass/PluginCache/94LdF3x6oVuuI1D4Lioz/log4net.exe'.
  Mono: Assembly Loader probing location: '/usr/lib/log4net.exe'.
  Mono: Assembly Loader probing location: '/usr/lib/mono/4.5/Facades/log4net.exe'.
  Mono: The following assembly referenced from /home/adrian/.local/share/KeePass/PluginCache/94LdF3x6oVuuI1D4Lioz/DotNetOpenAuth.dll could not be loaded:
       Assembly:   log4net    (assemblyref_index=12)
       Version:    1.2.10.0
       Public Key: 1b44e1d426115821
  The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/adrian/.local/share/KeePass/PluginCache/94LdF3x6oVuuI1D4Lioz/).

  Mono: Failed to load assembly DotNetOpenAuth[0x2272ab0]

  Mono: Could not load file or assembly 'log4net, Version=1.2.10.0,
  Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of its
  dependencies.

  I have installed 'liblog4net1.2-cil' package. The library included in the package is in the required version (1.2.10.0) however, apparently has different PublicKeyToken (a5715cc6d5c3540b instead 1b44e1d426115821) as in my directories I can find:
  /usr/lib/mono/gac/log4net/1.2.10.0__a5715cc6d5c3540b/log4net.dll

  Regards,
  Adrian

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: liblog4net1.2-cil 1.2.10+dfsg-6
  ProcVersionSignature: Ubuntu 3.13.0-36.63-generic 3.13.11.6
  Uname: Linux 3.13.0-36-generic x86_64
  NonfreeKernelModules: openafs
  ApportVersion: 2.14.1-0ubuntu3.4
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Wed Oct  1 12:29:34 2014
  InstallationDate: Installed on 2013-04-08 (540 days ago)
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
  PackageArchitecture: all
  SourcePackage: log4net
  UpgradeStatus: Upgraded to trusty on 2014-04-26 (157 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1376206/+subscriptions




More information about the Ubuntu-mono mailing list