antiplex - 2013-02-11

dear community,

in case others were affected and might search for a solution in this matter i would like to share my experiences of upgrading from keepass 2.19 to 2.21:

as i run ubuntu (12.04) i depend on mono which has run fine so far.

after replacing the binaries with the ones of the 2.21 portable i could not start keepass2 like before as i got the error

The assembly mscorlib.dll was not found or could not be loaded. It should have been installed in the `/usr/lib/mono/2.0/mscorlib.dll' directory.

when trying to run keepass2 from commandline.

as i checked the directory /usr/lib/mono/ i only found a subdirectory '4.0' inside. as keepass used to run fine before i suppose dependencies have changed somewhere between 2.19 and 2.21.

as i already had the package 'mono-runtime' installed i tried to add the package 'libmono2.0-cil' as this added /usr/lib/mono/2.0/...
after this, keepass2 crashed with the output

Unhandled Exception: System.TypeLoadException: Could not load type 'KeePass.Program' from assembly 'KeePass, Version=2.21.0.21106, Culture=neutral, PublicKeyToken=...'.
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'KeePass.Program' from assembly 'KeePass, Version=2.21.0.21106, Culture=neutral, PublicKeyToken=...'."

after this, i installed the package 'mono-complete' which wastes quite some space and took some time to install but afterwards i was able to run keepass 2.21.

any ideas about any more lightweight solutions? as keepass2 is the only application i use mono for i liked to only have a minimal mono-installation...

thanks & regards,
anti