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

    Declarative Security in ASP .net

    MS Newsgroups, Oct 17, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    552
    Natty Gur
    Oct 19, 2003
  2. =?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,010
    Steven Cheng[MSFT]
    Feb 2, 2006
  3. Alexandre Poitras
    Replies:
    0
    Views:
    564
    Alexandre Poitras
    Oct 28, 2005
  4. marwis1978
    Replies:
    0
    Views:
    483
    marwis1978
    Mar 20, 2007
  5. Dinis Cruz

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

    Dinis Cruz, Oct 8, 2003, in forum: ASP .Net Security
    Replies:
    2
    Views:
    337
    Dinis Cruz
    Oct 11, 2003
  6. Patrick

    Exception Handling declarative security

    Patrick, Apr 23, 2004, in forum: ASP .Net Security
    Replies:
    1
    Views:
    247
    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:
    190
    Chris Stev
    Sep 15, 2004
  8. saleryan

    Declarative Security

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