[Mono-list] Mono 2.4: "The assembly was not found in the Global Assembly Cache"
Michael Hutchinson
m.j.hutchinson at gmail.com
Sat Apr 11 22:03:11 EDT 2009
On Sat, Apr 11, 2009 at 1:06 AM, Michael B. Trausch <mike at trausch.us> wrote:
> Hello,
>
> I am attempting to setup Mono 2.4 on a server so that I can use ASP.NET
> applications on it. The instructions on the web page state that a
> standard "./configure && make && make install"-type process can be
> used, which makes sense, so this is what I have done.
>
> However, when I go to test the installation, I get:
>
> Saturday, 2009-Apr-11 at 00:59:54 - mbt at allspice - Linux v2.6.28.7
> Debian Lenny:[0-43/1944-0]:mono-2.4> gacutil -l
>
> ** (/usr/local/lib/mono/2.0/gacutil.exe:32619): WARNING **: The
> following assembly referenced from /usr/local/lib/mono/2.0/gacutil.exe
> could not be loaded: Assembly: Mono.Security (assemblyref_index=1)
> Version: 2.0.0.0 Public Key: 0738eb9f132ed756
> 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/local/lib/mono/2.0/).
>
>
> ** (/usr/local/lib/mono/2.0/gacutil.exe:32619): WARNING **: Could not
> load file or assembly 'Mono.Security, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=0738eb9f132ed756' or one of its dependencies.
>
> Unhandled Exception: System.IO.FileNotFoundException: Could not load
> file or assembly 'Mono.Security, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=0738eb9f132ed756' or one of its dependencies. File name:
> 'Mono.Security, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=0738eb9f132ed756' at Mono.Tools.Driver.LoadConfig
> (Boolean quiet) [0x00000] at Mono.Tools.Driver.Main (System.String[]
> args) [0x00000]
>
> When I check the GAC, the assembly is indeed present:
>
> Saturday, 2009-Apr-11 at 00:59:57 - mbt at allspice - Linux v2.6.28.7
> Debian Lenny:[0-44/1945-1]:mono-2.4> find /usr/local -name
> 'Mono.Security.dll*'
> /usr/local/lib/mono/2.0/Mono.Security.dll
> /usr/local/lib/mono/1.0/Mono.Security.dll
> /usr/local/lib/mono/gac/Mono.Security/1.0.5000.0__0738eb9f132ed756/Mono.Security.dll
> /usr/local/lib/mono/gac/Mono.Security/1.0.5000.0__0738eb9f132ed756/Mono.Security.dll.mdb
> /usr/local/lib/mono/gac/Mono.Security/2.0.0.0__0738eb9f132ed756/Mono.Security.dll
> /usr/local/lib/mono/gac/Mono.Security/2.0.0.0__0738eb9f132ed756/Mono.Security.dll.mdb
>
> Any idea why Mono 2.4 isn't finding these assemblies?
Probably not the cause of your problem, but note that if you have a
Mono from packages in /usr then installing Mono and related libraries
from source to /usr/local is generally a bad idea. For a start,
pkg-config has both /usr and /usr/local hardcoded as search paths, so
compilations against either of the two Monos can pull in references
from the other Mono, which don't then work at runtime. Please read
http://www.mono-project.com/Parallel_Mono_Environments for more info.
--
Michael Hutchinson
http://mjhutchinson.com
More information about the Mono-list
mailing list