J
James Hadwen
I'm not sure whether I'm doing something wrong, or
StrongNameIdentityPermission just doesn't work in 2.0 beta 2 yet.
public class Class1
{
[StrongNameIdentityPermission(SecurityAction.Demand, PublicKey =
Keys.PUBLIC_KEY)]
public Class1()
{
System.Diagnostics.Debug.Assert(Assembly.GetCallingAssembly().GetName().GetPublicKey().Length
!= 0);
}
}
Obviously the Assert shouldn't evaluate to true, and it doesn't when
compiled to 1.1. However it's clear that the StrongNameIdentityPermission is
being ignored in 2.0 as the assert indeed can evaluate to true.
Is there something different that I've neglected, or has security in the CLR
not been implemented yet?
Thanks in advance
James
StrongNameIdentityPermission just doesn't work in 2.0 beta 2 yet.
public class Class1
{
[StrongNameIdentityPermission(SecurityAction.Demand, PublicKey =
Keys.PUBLIC_KEY)]
public Class1()
{
System.Diagnostics.Debug.Assert(Assembly.GetCallingAssembly().GetName().GetPublicKey().Length
!= 0);
}
}
Obviously the Assert shouldn't evaluate to true, and it doesn't when
compiled to 1.1. However it's clear that the StrongNameIdentityPermission is
being ignored in 2.0 as the assert indeed can evaluate to true.
Is there something different that I've neglected, or has security in the CLR
not been implemented yet?
Thanks in advance
James