Copyright Accelerated Ideas 2007 Legacy Blog Posts | Blog Home | .NET Components

How can I grant or restrict permissions for the components?


1/3/2007

We advise developers not to change the permissions for the installed components unless absolutely necessary. We prefer that if a permissions bug is found that it is reported and dealt with by our team and subsequent fixes will be available for all developers from our site.

However, should you need to change permissions follow these steps:

1. Select Start, Control Panel, Admin Tools, Microsoft .Net Framework Configuration

2. Expand Runtime Security node, next expand the User Node, then the Permission Sets node to view the built in permission sets (you can choose to use one of these sets but in this example we will cover creating a custom set)

3. Right click the Everything permission set and select Duplicate, Rename the set to the name you desire

4. Now, you can start changing permissions by using the Change Permission link on the right panel of the configuration tool.

5. Next, we need to associate the new permission set with out component assembly. First expand the Code Groups node and click the default All Code group. Click the Add Child Code Group link on the right panel

6. Give the new group a name such as AIButtonGroup or similar

7. We recommend you select the Hash condition and browse to the dll, once selected click next

8. Finally, here we can choose the Permission Set to use. We can choose the permission set created earlier. We also recommend checking the box for ‘make this code group exclusive’.


< Blog Home