Am I missing something with PrincipalPermissionAttribute?

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Am I missing something with PrincipalPermissionAttribute?

    Hi after read this article i wanted to try the security feuteres in .net.

    In the artcle they claim that you should use it eg. like this:

    [System.Security.Permissions.PrincipalPermissionAtt ribute(System.Security.Permissions.SecurityAction. Demand,
    User="Joe")]
    public void test()
    {
    // Some secure stuff
    }


    But there is no overload for 2 parameters in the constructor...only one. Why
    is that?

    This is the only accessible constructor.

    [System.Security.Permissions.PrincipalPermissionAtt ribute(System.Security.Permissions.SecurityAction. Demand)]

    Thanks in regards
    Anders Jaocbsen


    Anders K. Jacobsen [DK] Guest

  2. Similar Questions and Discussions

    1. Missing fonts that aren't missing
      I have ID CS and am trying to merge a document from a colleague. He used "Times New Roman" as a font. It comes up as missing on my system. My similar...
    2. Links missing/update dialog missing upon file open
      I am experiencing a strange problem when opening files with InDesign CS2. The usaul dialog box alerting you to missing/updated links does not appear....
    3. YouTube videos missing but there...what am I missing?
      Under my account of Guestdemo I had uploaded about 6 videos or so. I made them public and then made them private. When I go to my account it says...
    4. "Missing" graphics that aren't missing? (ID CS)
      Sometimes I open an ID document and get the message, "This document contains links to missing or modified files." It's because I've moved or renamed...
    5. missing guides. missing cursors. missing a good drawing app. Ugh.
      I can't see my text cursor. It's invisible. Why? I can't see new guides I drag onto the documents. They are there, I just can't see them. Why? ...
  3. #2

    Default Re: Am I missing something with PrincipalPermissionAttribute?

    > In the artcle they claim that you should use it eg. like this:

    And this was the article:
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT03.asp[/url]

    /
    Anders


    Anders K. Jacobsen [DK] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139