Can't get a code group to work

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

  1. #1

    Default Can't get a code group to work

    I'm trying to use .Net Code Access Security. I've tried to
    create a code group at the user level (using strong name
    membership). Every time I run the app that is a member of
    the group, I get a SecurityException and never even get
    into Main(). This fails even if I set the PermissionSet of
    the group to Everything. The only time I can get the app
    to run is if I set the PermissionSet to Full Trust. Is
    there something I need to change in security.config or
    some Windows security setting I need to change?
    Chris Cummings Guest

  2. Similar Questions and Discussions

    1. code completion for fl.* group?
      hey, i'm not getting code completion for tweens or anything like that. when i type 'import fl.' i also don't get any completion. what am i...
    2. Work group in IND. for more than 200 A4 pages
      Guys am just a biggner in IND. I can work on a one IND file max 10 pages But there is my question Am working with a group of 40 person they are...
    3. [ba-rb] BA-rb ( Bay Area Ruby Users Group ) - 'Generating Code in Ruby' by Jack Herrington.
      Count me in again, too. -- Jos Backus _/ _/_/_/ Sunnyvale, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ jos at...
    4. Cannot access work group
      I have just updated a computer to windows xp he from windows 2000. Now I cant access the other computer on home network using windows 2000. ...
    5. Trying to get Group Policy to work
      Nico, I am experiencing the same problem. I am running XP Pro... "Nico Tomacelli (MSFT)" <nicot@online.microsoft.com> wrote in message...
  3. #2

    Default Can't get a code group to work

    OK, I found the reason. I have the code group flagged as
    exclusive (i.e. only use the permissions of this group at
    the user level). But I don't see why I can't mark it as
    exclusive. The documentation says that a security
    exception is thrown if the assembly is a member of more
    that one exclusive group which is not the case???
    >-----Original Message-----
    >I'm trying to use .Net Code Access Security. I've tried
    to
    >create a code group at the user level (using strong name
    >membership). Every time I run the app that is a member of
    >the group, I get a SecurityException and never even get
    >into Main(). This fails even if I set the PermissionSet
    of
    >the group to Everything. The only time I can get the app
    >to run is if I set the PermissionSet to Full Trust. Is
    >there something I need to change in security.config or
    >some Windows security setting I need to change?
    >.
    >
    Chris Cummings Guest

  4. #3

    Default Can't get a code group to work

    Actually turning of the exclusive attribute of the code
    group basically gives the assembly Full Trust from the
    AllCode group, so I'm back to square one.
    >-----Original Message-----
    >I'm trying to use .Net Code Access Security. I've tried
    to
    >create a code group at the user level (using strong name
    >membership). Every time I run the app that is a member of
    >the group, I get a SecurityException and never even get
    >into Main(). This fails even if I set the PermissionSet
    of
    >the group to Everything. The only time I can get the app
    >to run is if I set the PermissionSet to Full Trust. Is
    >there something I need to change in security.config or
    >some Windows security setting I need to change?
    >.
    >
    Chris Cummings Guest

  5. #4

    Default Can't get a code group to work

    OK, I found out why. The assembly needs to be marked as
    [assembly:AllowPartiallyTrustedCallers]
    >-----Original Message-----
    >I'm trying to use .Net Code Access Security. I've tried
    to
    >create a code group at the user level (using strong name
    >membership). Every time I run the app that is a member of
    >the group, I get a SecurityException and never even get
    >into Main(). This fails even if I set the PermissionSet
    of
    >the group to Everything. The only time I can get the app
    >to run is if I set the PermissionSet to Full Trust. Is
    >there something I need to change in security.config or
    >some Windows security setting I need to change?
    >.
    >
    Chris Cummings 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