[Mono-list] gacing assemblies

Steve Lessard s_lessard at yahoo.com
Wed Nov 24 15:26:01 EST 2010


Sebastien,

Thanks for your help.  Reading the source code was a good idea and patching the 
source code is a better idea. Unfortunately my employer strictly forbids me from 
looking at the source code for any open source software. This means I can't 
search the Mono source code for answers to my questions and it most certainly 
means I cannot offer patches for anything at all.  :-(

I tried the -bootstrap option. It's a bit confusing because it says it failed, 
but then says it succeeded. I confirmed that the assembly is now in Mono's GAC 
directory. I think it's OK now.  ...fingers crossed...



C:\program files\Microsoft Office Communications Server 2007 R2\ucma sdk 
2.0\ucmacore\bin>gacutil -i Microsoft.Rtc.Collaboration.dll -bootstrap
Failure adding assembly Microsoft.Rtc.Collaboration.dll to the cache: Strong 
name cannot be verified for delay-signed assembly(continuing anyway)
Installed Microsoft.Rtc.Collaboration.dll into the gac (C:\Program 
Files\Mono-2.8.1\lib\mono\gac)




________________________________
From: Sebastien Pouliot <sebastien.pouliot at gmail.com>
To: Steve Lessard <s_lessard at yahoo.com>
Cc: Mono <Mono-list at lists.ximian.com>
Sent: Wed, November 24, 2010 11:52:25 AM
Subject: Re: [Mono-list] gacing assemblies

On Wed, 2010-11-24 at 11:25 -0800, Steve Lessard wrote:
> Last night I opened this
> bug https://bugzilla.novell.com/show_bug.cgi?id=655684 because Mono's
> gacutil cannot gac delay-signed assemblies. (.NET's gacutil works just
> fine with delay-signed assemblies.) This bug in Mono's gacutil is
> blocking me so I want to find a workaround. One option in the .NET
> world is to use sn.exe -Vr to register the assembly for skipping
> strongname validation. Unfortunately Mono's sn.exe tool hasn't
> implemented the -Vr feature, though curiously it has implemented the
> -Vl and -Vf features both of which only apply to assemblies that have
> been registered for skipping strong name validation. This leads me to
> believe that there must be some way to manually register an assembly
> for skipping strongname validation.

No, that was never needed, so it never got fully implemented. Most of
the logic exists in StrongNameManager.cs. Patches welcome to complete
it.

> I know that when .NET's sn.exe registers an assembly for skipping
> strongname validation what really happens is a key is created in the
> registry, e.g. HKEY_LOCAL_MACHINE\System\StrongName\Verification
> \Microsoft.Rtc.Collaboration,31BF3856AD364E35. In .NET it is possible
> to manually register an assembly for skipping strong name validation
> by creating a similar reg key. Does Mono have an analogous way
> to manually register an assembly for skipping strongname validation?

Try "-bootstrap" on your gacutil command-line (I never tried it myself
but it was an easy find by reading the source code ;-)

Sebastien


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20101124/3aef7520/attachment.html 


More information about the Mono-list mailing list