Microsoft KB Archive/867632

= BUG: The Adjust .NET Security wizard changes the names and the descriptions of the custom code groups in the .NET Framework =

Article ID: 867632

Article Last Modified on 4/19/2007

-

APPLIES TO


 * Microsoft .NET Framework 1.1
 * Microsoft .NET Framework 1.0

-





SYMPTOMS
You may change the security-level settings for any one of the following computer zones:
 * My Computer
 * Local Intranet
 * Internet
 * Trusted Sites
 * Untrusted Sites

You can do this by using the Adjust .NET Security wizard in the Microsoft .NET Framework Wizards tool, also known as Configwizards.exe. However, when you restore any one of the computer zones to the original settings, the names and the descriptions of the custom code groups may be changed.



CAUSE
This problem occurs only when you change the security policy by using the Adjust .NET Security wizard.



WORKAROUND
To work around this problem, use the Microsoft .NET Framework Configuration tool, also known as Mscorcfg.msc, instead of the Microsoft .NET Framework Wizards tool to change the security policy.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section.



Steps to reproduce the problem
Change the security settings by using the Adjust .NET Security wizard. To do this, follow these steps:
 * 1) Start the Microsoft Visual Studio .NET command prompt.
 * 2) At the command prompt, type Configwizards.exe, and then press ENTER.

The .net Wizards window appears.

If you are using the Visual Studio .NET 2003 command prompt, the .NET Wizards window appears.
 * 1) In the .net Wizards window, click Adjust .net Security.

If you are using Visual Studio .NET 2003, click Adjust .NET Security in the .NET Wizards window.

The Security Adjustment Wizard dialog box appears.
 * 1) On the What Would You Like to Modify page, click Make changes to this computer, and then click Next.
 * 2) On the Adjust the Security Level for Each Zone page, click Local Intranet, and then move the slider to Full Trust.
 * 3) On the Adjust the Security Level for Each Zone page, click Next.
 * 4) On the Completing the Wizard page, click Finish.

Restore the changes that are made to the security settings. To do this, follow these steps:
 * 1) In the .net Wizards window, click Adjust .net Security.

The Security Adjustment Wizard dialog box appears.
 * 1) On the What Would You Like to Modify page, click Make changes to this computer, and then click Next.
 * 2) On the Adjust the Security Level for Each Zone page, click Local Intranet, and then click Default Level.
 * 3) On the Adjust the Security Level for Each Zone page, click Next.
 * 4) On the Completing the Wizard page, click Finish.
 * 5) Close the .net Wizards window.

Use the Microsoft .NET Framework Configuration tool to verify the names and the descriptions of the custom code groups. To do this, follow these steps:  At the Visual Studio .NET command prompt, type Mscorcfg.msc, and then press ENTER.

The .NET Framework Configuration window appears.

If you are using the Visual Studio .NET 2003 command prompt, the .NET Configuration 1.1 window appears. In the .NET Framework Configuration window, expand Runtime Security Policy in the left pane, and then expand Machine. Expand Code Groups, and then expand All_Code. Expand LocalIntranet_Zone.

Notice the NetCodeGroup_0 custom code group and the FileCodeGroup_1 custom code group in the LocalIntranet_Zone code group.

The following table lists the code groups, the names of the default custom code groups, and the changed names of the default custom code groups that appear when you use the Adjust .NET Security wizard: 

<div class="references_section">