[Mono-bugs] [Bug 654637] New: Wrong PublicKey when accessing missing keycontainer

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Nov 18 10:01:21 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=654637

https://bugzilla.novell.com/show_bug.cgi?id=654637#c0


           Summary: Wrong PublicKey when accessing missing keycontainer
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Cecil
        AssignedTo: spouliot at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


using System.Reflection;

class A
{
    public static void Main ()
    {
        var r = new StrongNameKeyPair ("does -% not exist").PublicKey;
        System.Console.WriteLine (r.Length);
    }
}

NET

Unhandled Exception: System.ArgumentException: Unable to obtain public key for
StrongNameKeyPair.
   at System.Reflection.StrongNameKeyPair.ComputePublicKey()
   at System.Reflection.StrongNameKeyPair.get_PublicKey()
   at A.Main()

Mono
160

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list