Declarative Security in ASP .net

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
 
N

Natty Gur

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,439
Members
44,829
Latest member
PIXThurman

Latest Threads

Top