How to: Create Code Groups

When you create a code group using the .NET Framework Configuration tool (Mscorcfg.msc), you must also associate the group with a membership condition and a permission set.

Important

Mscorcfg.msc has been removed from the .NET Framework version 4 and later versions. This documentation applies only to earlier versions of the .NET Framework. For more information about security changes in the .NET Framework 4, see Security Changes in the .NET Framework 4.

To create code groups using Mscorcfg.msc

  1. Run the .NET Framework Configuration tool (Mscorcfg.msc).

    1. In Control Panel, open Administrative Tools.

    2. Double-click Microsoft .NET Framework <version> Configuration.

    Alternatively, you can run the tool from a command prompt:

    • In the .NET Framework versions 1.0 and 1.1, type the following at the command prompt: %Systemroot%\Microsoft.NET\Framework\versionNumber\Mscorcfg.msc.

    • In the .NET Framework 2.0, start the Visual Studio and Windows SDK Command Prompts and type mscorcfg.msc.

  2. Expand the Runtime Security Policy node.

  3. Expand the node for the policy level you want to add the code group to.

  4. Expand the Code Groups node, and then expand the tree under the All_code node.

  5. Right-click the code group that will be the immediate parent of the new code group, and choose New.

  6. Give the code group a name and, optionally, a description. Click Next.

  7. Select a membership condition from the drop-down box. Follow the instructions for entering the requested information for the membership condition. Click Next.

  8. Choose an existing permission set from the drop-down box or select Create a new permission set. Click Next, and then click Finish.

See Also

Reference

Mscorcfg.msc (.NET Framework Configuration Tool)

Other Resources

Configuring Security Policy

Configuring Security Policy Using the .NET Framework Configuration Tool (Mscorcfg.msc)

Configuring Code Groups Using the .NET Framework Configuration Tool (Mscorcfg.msc)