Declarative Security in ASP .net

  • Thread starter Thread starter MS Newsgroups
  • Start date Start date
M

MS Newsgroups

Hi,

I am trying to use declarative security in a ASP .net application
With the statement below

<System.Security.Permissions.PrincipalPermission(System.Security.Permissions
..SecurityAction.LinkDemand, Role:="BUILTIN\Account Operators")> _
Public Class myClass

I always receive a security exception regardless if i am a member of the
role. Server is configured for Windows Authentication and identity
imperonate is set to true in web.config.

Is this supposed to work, or am i doing something wrong ?

Regards

Niclas
 
Hi,

BUILTIN is your domain name or you just copy it from the sample?

Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
 
Back
Top