[Mono-list] Mono unable of using it's onw generated keys ?

George Kodinov gkodinov@openlinksw.co.uk
Thu, 30 Oct 2003 14:40:08 +0200


The size is 596 bytes (the same as if generated by Win32).

The bugzilla is 50341 <http://bugzilla.ximian.com/show_bug.cgi?id=3D50341=

Best Regards,
George Kodinov

S=E9bastien Pouliot wrote:

>Most probably a bug.
>What's the size of your Testing.snk file ?
>Please fill a bug into bugzilla. I'll look into it ASAP.
>Sebastien Pouliot
>Security Architect, Motus Technologies, http://www.motus.com
>work: spouliot@motus.com
>home: spouliot@videotron.ca
>blog: http://pages.infinit.net/ctech/poupou.html
>-----Original Message-----
>From: mono-list-admin@lists.ximian.com
>[mailto:mono-list-admin@lists.ximian.com]On Behalf Of George Kodinov
>Sent: 30 octobre 2003 04:29
>To: MONO List
>Subject: [Mono-list] Mono unable of using it's onw generated keys ?
>I have the follwing problem w/ Mono (compiled from CVS) on RH9 :
>I have a program that uses a key :
>[assembly: AssemblyKeyFile(@"Testing.snk")]
>When I generate a key for it w/ the sn.exe  (mono sn.exe -k Testing.snk)=
>from the mono distribution and try compiling I get :
>Unhandled Exception: System.IndexOutOfRangeException: Array index is out=
>of range
>in <0x001df>=20
>in <0x0006b> Mono.Security.Cryptography.CryptoConvert:ToCapiKeyBlob=20
>in <0x0002d> Mono.Security.StrongName:get_PublicKey ()
>in <0x002ba> System.Reflection.Emit.AssemblyBuilder:SetCustomAttribute=20
>in <0x00d09> Mono.CSharp.Attribute:ApplyAttributes=20
>in <0x001f9> Mono.CSharp.RootContext:EmitCode ()
>in <0x0082a> Mono.CSharp.Driver:MainDriver (string[])
>in <0x0001b> Mono.CSharp.Driver:Main (string[])
>Is this a bug or am I doing something wrong ?
>Best Regards,
>George Kodinov
>Developer, OpenLink Software (http://www.openlinksw.com)
>Mono-list maillist  -  Mono-list@lists.ximian.com
> =20