[Mono-list] Mono unable of using it's onw generated keys ?
George Kodinov
gkodinov@openlinksw.co.uk
Thu, 30 Oct 2003 11:29:00 +0200
Hi,
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>
Mono.Security.Cryptography.CryptoConvert:ToCapiPublicKeyBlob
(System.Security.Cryptography.RSA)
in <0x0006b> Mono.Security.Cryptography.CryptoConvert:ToCapiKeyBlob
(System.Security.Cryptography.RSA,bool)
in <0x0002d> Mono.Security.StrongName:get_PublicKey ()
in <0x002ba> System.Reflection.Emit.AssemblyBuilder:SetCustomAttribute
(System.Reflection.Emit.CustomAttributeBuilder)
in <0x00d09> Mono.CSharp.Attribute:ApplyAttributes
(Mono.CSharp.EmitContext,object,object,Mono.CSharp.Attributes)
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)