[Mono-list] Mono 2.4: "The assembly was not found in the Global Assembly Cache"

Michael B. Trausch mike at trausch.us
Sat Apr 11 01:06:22 EDT 2009


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?

	--- Mike



More information about the Mono-list mailing list