[Mono-list] PrincipalPermission not generate exception

Jose Pino joil at joil.cl
Mon Feb 14 16:17:43 EST 2011


Hi all,

I'm try next code


public partial class Default : System.Web.UI.Page
{
	[PrincipalPermission(SecurityAction.Demand, Role = "Editor")]
	public virtual void button1Clicked (object sender, EventArgs args)
	{
		button1.Text = "You clicked me";
	}
}


In windows - .NET 2.0 --> generate "Security Exception" this is OK
In Debian - Mono 2.6.7 --> Not generate exception !!!

any idea



More information about the Mono-list mailing list