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. Advertisements

  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. Advertisements

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. =?Utf-8?B?SmVmZkRvdE5ldA==?=

    Declarative use of sqlDataSource in ASP.net 2.0 and Exception Hand

    =?Utf-8?B?SmVmZkRvdE5ldA==?=, Feb 1, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    3,019
    Steven Cheng[MSFT]
    Feb 2, 2006
  2. Alexandre Poitras
    Replies:
    0
    Views:
    567
    Alexandre Poitras
    Oct 28, 2005
  3. marwis1978
    Replies:
    0
    Views:
    493
    marwis1978
    Mar 20, 2007
  4. Dinis Cruz

    Asp.Net Security Analyser (new security tool by DDPlus)

    Dinis Cruz, Oct 8, 2003, in forum: ASP .Net Security
    Replies:
    2
    Views:
    344
    Dinis Cruz
    Oct 11, 2003
  5. MS Newsgroups

    Declarative Security in ASP .net

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

    Exception Handling declarative security

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

    Custom HttpHandlers and Declarative Security

    Chris Stev, Sep 15, 2004, in forum: ASP .Net Security
    Replies:
    0
    Views:
    194
    Chris Stev
    Sep 15, 2004
  8. saleryan

    Declarative Security

    saleryan, Feb 18, 2006, in forum: ASP .Net Security
    Replies:
    0
    Views:
    168
    saleryan
    Feb 18, 2006
Loading...