Declarative Security in ASP .net

Discussion in 'ASP .Net' started by MS Newsgroups, Oct 17, 2003.

  1. 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
    MS Newsgroups, Oct 17, 2003
    #1
    1. Advertising

  2. MS Newsgroups

    Natty Gur Guest

    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


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur, Oct 19, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alexandre Poitras
    Replies:
    0
    Views:
    481
    Alexandre Poitras
    Oct 28, 2005
  2. marwis1978
    Replies:
    0
    Views:
    361
    marwis1978
    Mar 20, 2007
  3. MS Newsgroups

    Declarative Security in ASP .net

    MS Newsgroups, Oct 17, 2003, in forum: ASP .Net Security
    Replies:
    0
    Views:
    119
    MS Newsgroups
    Oct 17, 2003
  4. Patrick

    Exception Handling declarative security

    Patrick, Apr 23, 2004, in forum: ASP .Net Security
    Replies:
    1
    Views:
    153
    Chris Rolon
    Apr 25, 2004
  5. Chris Stev

    Custom HttpHandlers and Declarative Security

    Chris Stev, Sep 15, 2004, in forum: ASP .Net Security
    Replies:
    0
    Views:
    98
    Chris Stev
    Sep 15, 2004
Loading...

Share This Page