how to protect a class with a principalpermissionattribute?
- From: "xamman" <xamman19@xxxxxxxxx>
- Date: 26 Mar 2007 08:45:43 -0700
hello! anyone ever manage to do this? after trying nearly everything
i
can think of my code (below) still gives 'request for principal
permissions failed' .
many thanks
x
..
..
..
..
..
..
Protecting to class - this doesnt work (& the tried
role:="administrators", name:="administrator" etc)
< PrincipalPermissionAttribute(SecurityAction.Demand, Role:="BUILTIN
\Administrators") _
Public Class Form1 Inherits System.Windows.Forms.Form
Private Sub Form1_Load(ByVal sender As System.Object, ByVal and As
System.EventArgs) Handles MyBase.Load
Messagebox("form should load if user is admin")
End Sub
if you need more details about this problem:
http://groups.google.com/group/microsoft.public.dotnet.languages.vb/browse_thread/thread/f62c0a75256b91e7/001879dbbf09528d#001879dbbf09528d
.
- Follow-Ups:
- Re: how to protect a class with a principalpermissionattribute?
- From: billsahiker
- Re: how to protect a class with a principalpermissionattribute?
- Prev by Date: Re: BE VERY CAREFUL, AS YOU MIGHT BE A VICTIM OF SCAM/FRAUD RIGHT NOW!!
- Next by Date: Re: Can you see why this does not sort the list?
- Previous by thread: Re: BE VERY CAREFUL, AS YOU MIGHT BE A VICTIM OF SCAM/FRAUD RIGHT NOW!!
- Next by thread: Re: how to protect a class with a principalpermissionattribute?
- Index(es):
Relevant Pages
|