Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

keepass 2.18 on linux

Help
averlon
2012-01-07
2012-11-19
  • averlon
    averlon
    2012-01-07

    Hi,
    after installation I get this error on start:
    Unhandled Exception: System.TypeLoadException: Could not load type 'KeePass.Program' from assembly 'KeePass, Version=2.1.8.27472, Culture=neutral, PublicKeyToken=0738eb9f132ed756'.
    FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'KeePass.Program' from assembly 'KeePass, Version=2.1.8.27472, Culture=neutral, PublicKeyToken=0738eb9f132ed756'.

    Any idea?
    Regards Karl-Heinz

     
  • averlon
    averlon
    2012-01-07

    Linux ubuntupc 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

     
  • Julian Taylor
    Julian Taylor
    2012-01-07

    I saw this before, its some weirdness with keepass built for 2.0 framework and mono running 4.0 by default, though I can't reproduce it.
    you can try mono -runtime=v4.0 ./KeePass.exe and see if it helps (though it probably won't)

    I recommend to use the keepass version from the official repository. that is built with the 4.0 profile and works ok.
    sudo apt-get install keepass2

     
  • averlon
    averlon
    2012-01-07

    Hi,
    I meanwhile installed from the official repository.

    Anyhow - mono -runtime=v4.0 ./KeePass.exe:
    Unhandled Exception: System.TypeLoadException: Could not load type 'KeePass.Program' from assembly 'KeePass, Version=2.1.8.23108, Culture=neutral, PublicKeyToken=0738eb9f132ed756'.
    FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'KeePass.Program' from assembly 'KeePass, Version=2.1.8.23108, Culture=neutral, PublicKeyToken=0738eb9f132ed756'

    So it is same error only with different keepass release!

     
  • averlon
    averlon
    2012-01-07

    but with
    mono -runtime=v2.0 ./KeePass.exe

    some gui is shown.
    It does not look like the gui I am used to have on Ubuntu.
    When I open a database the file selection dialogue shows wine directories which was not the case in the older version when it still worked.

    So it seems to me as if running keepass2 via /usr/bin/keepass2 seems to be different as with the mono-command.

     
  • averlon
    averlon
    2012-01-07

    Sorry, I have to correct myself.
    I started it with a different user as usual.

    Now, issuing the command with the usal user it show the gui usual way.
    The open database dialogue now directly shows my home directory and that is what I was used for.

    Normally I start it with /usr/bin/keepass2 which, I expect, implicitely issues the mono-command.
    How can I still go that way?

     
  • averlon
    averlon
    2012-01-07

    sorry to come in again.

    As said before, I now can start keepass2 and can use auto-type.

    When I edit an entry and I click OK, keepass asks me to exit the application and if I want to save the data before !!!!
    SAVE does not work, NO does exit the application and ABORT aswell.

    It seems there is still something strange.

     
  • Julian Taylor
    Julian Taylor
    2012-01-07

    please be more clear about which command does what.

    Also keepass is pretty broken under mono 2.10. E.g. configuration saving does not work, and you won't get any equality  checking when you type in passwords for new entries. There is not much one can do about that until mono fixes the issue.

     
  • averlon
    averlon
    2012-01-08

    Hi,
    this command
    mono -runtime=v2.0 ./KeePass.exe
    starts keepass in the usual way - clear enough.

    Any editing you do keepass will exit on "OK".

     
  • Hi,

    i have the same problem as averlon

    til 2.17 there was no problem while createing new entries.

    mono ~/bin/KeePass/KeePass.exe
    Linux canrif 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:28:43 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

    in adition to averlon: any editing will exit keepass even the creation of a new file

     
  • kd5zex
    kd5zex
    2012-01-08

    Same problem here as well.

     
  • Julian Taylor
    Julian Taylor
    2012-01-08

    this is caused by this mono bug:
    http://bugzilla.xamarin.com/show_bug.cgi?id=2159

    the only way out I see is reverting to 2.16 with the webdav patch (see the debian package in oneiric). it is least broken of all available keepass versions on mono 2.10.
    or change back to mono < 2.10 (or revert only the mentioned commit)

     
  • RockDrill'a
    RockDrill'a
    2012-06-05

    Seems to be a zombie-topic, but where's interesting facts here!

    I've two machines (home & work) and using KeePass 2.19 on 'worker'.
    Today I've tried to use it on home station and got that error.

    Brief technical info:

    PC #1, netbook aka 'worker', Debian Wheezy i386:

    rockdrilla@rdbook:~$ uname -a
    Linux rdbook 3.2.0-2-686-pae #1 SMP Mon May 21 18:24:12 UTC 2012 i686 GNU/Linux
    rockdrilla@rdbook:~$ cli -V
    Mono JIT compiler version 2.10.8.1 (Debian 2.10.8.1-3)
    Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  x86
        Disabled:      none
        Misc:          softdebug 
        LLVM:          supported, not enabled.
        GC:            Included Boehm (with typed GC and Parallel Mark)
    

    Machine #2, normal PC aka 'home', Debian Wheezy x86_64:

    rockdrilla@rdhome:~$ uname -a
    Linux rdhome 3.2.0-2-amd64 #1 SMP Mon May 21 17:45:41 UTC 2012 x86_64 GNU/Linux
    rockdrilla@rdhome:~$ cli -V
    Mono JIT compiler version 2.10.8.1 (Debian 2.10.8.1-3)
    Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug 
        LLVM:          supported, not enabled.
        GC:            Included Boehm (with typed GC and Parallel Mark)
    

    The _only_ difference is OS architecture, as you see.
    That's why problem is located at non-i386 Mono builds.

    PS: sorry me about my terrific language. :-[

     
  • Julian Taylor
    Julian Taylor
    2012-06-07

    debian wheezy has a packaged version of keepass 2.19 which should work because its explicitly built for debians mono.
    apt-get install keepass2
    did you try that?

     
  • KlausMy
    KlausMy
    2012-06-14

    I've had the same problem for months (OS: Ubuntu Natty w/ many launchpad packages) and when I read this thread by chance I played a little bit with the different versions. Final result: when I installed v2.18 additional mono libraries were installed and after an upgrade to v.2.19 it finally worked. Hope this helps.

    Klaus

     
  • nitai4andra
    nitai4andra
    2012-09-13

    I've had the same problem on Fedora 17 x86_64, and resolved it by installing mono-develop package (additionally to mono-core) from Fedora repos. Maybe it helps someone (though it is particularly explained on KeePass page: http://keepass.info/help/v2/setup.html#mono, but this page comes first in google search results of "Could not load type 'KeePass.Program'").