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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to