Results 1 to 9 of 9

Thread: mono and gac - tomboy broken

  1. #1
    Join Date
    Mar 2007
    Location
    Australia
    Beans
    68

    mono and gac - tomboy broken

    Hello all, this is as much a question about mono as a help request for tomboy so I hope I'm posting this in the right place.

    Basically, tomboy stopped working after I installed mono from the binary installer mono-1.2.5.1_3-installer.bin.

    I installed the new verson of mono to ~/bin/mono so that it would not affect my existing mono installation, but this obviously did not help.

    Running tomboy from the console produces:
    Code:
    mark@linuxbox:~$ tomboy
    
    ** (/usr/lib/tomboy/Tomboy.exe:8239): WARNING **: The following assembly referenced from /usr/lib/tomboy/Tomboy.exe could not be loaded:
         Assembly:   gnome-sharp    (assemblyref_index=2)
         Version:    2.16.0.0
         Public Key: 35e10195dab3c99f
    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 (/usr/lib/tomboy).
    
    
    ** (/usr/lib/tomboy/Tomboy.exe:8239): WARNING **: Could not load file or assembly 'gnome-sharp, Version=2.16.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' or one of its dependencies.
    
    ** (/usr/lib/tomboy/Tomboy.exe:8239): WARNING **: The following assembly referenced from /usr/lib/tomboy/Tomboy.exe could not be loaded:
         Assembly:   gtk-sharp    (assemblyref_index=1)
         Version:    2.10.0.0
         Public Key: 35e10195dab3c99f
    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 (/usr/lib/tomboy).
    
    
    ** (/usr/lib/tomboy/Tomboy.exe:8239): WARNING **: Could not load file or assembly 'gtk-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' or one of its dependencies.
    
    Unhandled Exception: System.TypeLoadException: Could not load type 'Tomboy.Tomboy' from assembly 'Tomboy, Version=0.0.0.0, Culture=neutral'.
    so I googled a bit and checked the mono gac contents with:

    Code:
    mark@linuxbox:~$ gacutil -l |grep gtk
    gtk-dotnet, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    gtk-sharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    gtk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    gtkhtml-sharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    gtkhtml-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    gtksourceview-sharp, Version=1.0.0.2, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    policy.2.4.gtk-dotnet, Version=0.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    policy.2.4.gtk-sharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    policy.2.4.gtkhtml-sharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    policy.2.6.gtk-dotnet, Version=0.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    policy.2.6.gtk-sharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    policy.2.6.gtkhtml-sharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    and

    Code:
    mark@linuxbox:~$ gacutil -l |grep gnome
    gnome-sharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    gnome-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    gnome-vfs-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    policy.2.4.gnome-sharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    policy.2.4.gnome-vfs-sharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    policy.2.6.gnome-sharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    policy.2.6.gnome-vfs-sharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
    obviously the versions in the gac are older than the required libraries, so I checked the installed files with:

    Code:
    mark@linuxbox:~$ ls /usr/lib/mono/gac/gnome-sharp/
    1.0.0.0__35e10195dab3c99f  2.16.0.0__35e10195dab3c99f
    and
    Code:
    mark@linuxbox:~$ ls /usr/lib/mono/gac/gtk-sharp/
    1.0.0.0__35e10195dab3c99f  2.10.0.0__35e10195dab3c99f
    and it looks like the files are there, but the gac is somehow not recognizing it. Does anyone know how I can make the mono gac recognize these assemblies? or how to install them again to make tomboy work?

    Thanks and Best Regards.

  2. #2
    Join Date
    Apr 2008
    Beans
    1

    Re: mono and gac - tomboy broken

    Hello,

    Try using gacutil -i path_to_dll to register the required dlls.

    I had the same issue with Tomboy, and I've finally got rid of it with:

    Code:
    gacutil -i /usr/lib/mono/gac/gnome-sharp/2.16.0.0__35e10195dab3c99f/gnome-sharp.dll
    gacutil -i /usr/lib/mono/gac/gtk-sharp/2.10.0.0__35e10195dab3c99f/gtk-sharp.dll
    gacutil -i /usr/lib/mono/gac/glib-sharp/2.10.0.0__35e10195dab3c99f/
    gacutil -i /usr/lib/mono/gac/glib-sharp/2.10.0.0__35e10195dab3c99f/glib-sharp.dll
    gacutil -i /usr/lib/mono/gac/atk-sharp/2.10.0.0__35e10195dab3c99f/atk-sharp.dll
    gacutil -i /usr/lib/mono/gac/gdk-sharp/2.10.0.0__35e10195dab3c99f/gdk-sharp.dll
    gacutil -i /usr/lib/mono/gac/gconf-sharp/2.16.0.0__35e10195dab3c99f/gconf-sharp.dll
    gacutil -i /usr/lib/mono/gac/pango-sharp/2.10.0.0__35e10195dab3c99f/pango-sharp.dll
    gacutil -i /usr/lib/mono/gac/NDesk.DBus/1.0.0.0__f6716e4f9b2ed099/NDesk.DBus.dll
    gacutil -i /usr/lib/mono/gac/NDesk.DBus.GLib/1.0.0.0__f6716e4f9b2ed099/NDesk.DBus.GLib.dll
    gacutil -i /usr/lib/mono/gac/gmime-sharp/2.2.0.0__677013d4cb5910f0/gmime-sharp.dll
    I hope it will help.

    Best regards,

  3. #3
    Join Date
    Jan 2008
    Beans
    22

    Re: mono and gac - tomboy broken

    HI,
    How did u install the mono on Ubuntu using bin file. Plz help us.

    Thanks & regards,
    Ravi.

  4. #4
    Join Date
    Apr 2008
    Beans
    3

    Re: mono and gac - tomboy broken

    I'm having similar problems with anything that runs on mono after updating to 8.04 from 7.10. When I tried the steps listed here it would remove the values from the gac directory. So I tried re-installing the .dll's to the gac and this is what happens (I had tried this with gtk-sharp first but the output is the same):
    Code:
     sudo gacutil -i /usr/lib/mono/gtk-sharp-2.0/gtk-dotnet.dll 
    
    Unhandled Exception: System.IO.FileNotFoundException: Could not find file "/usr/lib/mono/gtk-sharp-2.0/gtk-dotnet.dll" or "/usr/lib/mono/gac/gtk-dotnet/2.12.0.0__35e10195dab3c99f/gtk-dotnet.dll"
    File name: "/usr/lib/mono/gtk-sharp-2.0/gtk-dotnet.dll" or "/usr/lib/mono/gac/gtk-dotnet/2.12.0.0__35e10195dab3c99f/gtk-dotnet.dll"
      at System.IO.File.Copy (System.String src, System.String dest, Boolean overwrite) [0x00000] 
      at Mono.Tools.Driver.Copy (System.String source, System.String target, Boolean v) [0x00000] 
      at Mono.Tools.Driver.Install (Boolean check_refs, System.String name, System.String package, System.String gacdir, System.String link_gacdir, System.String libdir, System.String link_libdir) [0x00000] 
      at Mono.Tools.Driver.Main (System.String[] args) [0x00000]
    Then when I try to run the exact command immediately following I get a different error:
    Code:
     sudo gacutil -i /usr/lib/mono/gtk-sharp-2.0/gtk-dotnet.dll 
    Failure adding assembly to the cache: The file specified is not a valid assembly.
    I'm not familiar with mono at all, I'm just trying to get my mono applications working again.

  5. #5
    Join Date
    Apr 2008
    Beans
    1

    Re: mono and gac - tomboy broken

    Im with the same problem :S. Can somebody help us?

    I try to remove all mono and reinstall but didn't work...

    Thank u!

  6. #6
    Join Date
    Feb 2009
    Beans
    1

    Re: mono and gac - tomboy broken

    For some reason when, for example, manually compiled, gnome-sharp and other libs are not registered in GAC, though are put in the correct location.
    So, you have to manually rescan GAC:

    cd /usr/lib/mono/gac # assuming this is your main gac
    sudo find . */*/*.dll -exec gacutil -i '{}' \;

    Ignore all the warnings.

  7. #7
    Join Date
    Oct 2006
    Location
    /dev/null
    Beans
    1,574
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: mono and gac - tomboy broken

    Quote Originally Posted by guardante View Post
    For some reason when, for example, manually compiled, gnome-sharp and other libs are not registered in GAC, though are put in the correct location.
    So, you have to manually rescan GAC:

    cd /usr/lib/mono/gac # assuming this is your main gac
    sudo find . */*/*.dll -exec gacutil -i '{}' \;

    Ignore all the warnings.
    And don't expect an iota of support if you file any bugs via launchpad
    Understanding is a three-edged sword: Your side, their side, and the truth

  8. #8
    Join Date
    Jun 2005
    Location
    Göteborg, Sweden
    Beans
    102
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: mono and gac - tomboy broken

    Quote Originally Posted by guardante View Post

    cd /usr/lib/mono/gac # assuming this is your main gac
    sudo find . */*/*.dll -exec gacutil -i '{}' \;

    Ignore all the warnings.
    Yep, this worked for me

  9. #9
    Join Date
    Dec 2009
    Beans
    4

    Re: mono and gac - tomboy broken

    Quote Originally Posted by guardante View Post
    For some reason when, for example, manually compiled, gnome-sharp and other libs are not registered in GAC, though are put in the correct location.
    So, you have to manually rescan GAC:

    cd /usr/lib/mono/gac # assuming this is your main gac
    sudo find . */*/*.dll -exec gacutil -i '{}' \;

    Ignore all the warnings.
    guardante fixed all my problems. I looked FOREVER googling monodevelop with multiple different forums never giving me an answer that worked. I ran across something saying that F-Spot and Tomboy use mono and should be installed by default with Ubuntu 9.10 so you should have mono and monodevelop should work. Anyhow this fixed it and am VERY GRATEFUL there are people like him to solve my stupid issues.! Thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •