Declarative Security in ASP .net

Discussion in 'ASP .Net Security' 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

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. MS Newsgroups

    Declarative Security in ASP .net

    MS Newsgroups, Oct 17, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    469
    Natty Gur
    Oct 19, 2003
  2. Alexandre Poitras
    Replies:
    0
    Views:
    498
    Alexandre Poitras
    Oct 28, 2005
  3. marwis1978
    Replies:
    0
    Views:
    386
    marwis1978
    Mar 20, 2007
  4. Patrick

    Exception Handling declarative security

    Patrick, Apr 23, 2004, in forum: ASP .Net Security
    Replies:
    1
    Views:
    173
    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:
    116
    Chris Stev
    Sep 15, 2004
Loading...

Share This Page