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



The information in this article 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 "Applies to" section.

MORE INFORMATION

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.
  3. 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.
  4. On the What Would You Like to Modify page, click Make changes to this computer, and then click Next.
  5. On the Adjust the Security Level for Each Zone page, click Local Intranet, and then move the slider to Full Trust.
  6. On the Adjust the Security Level for Each Zone page, click Next.
  7. 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.
  2. On the What Would You Like to Modify page, click Make changes to this computer, and then click Next.
  3. On the Adjust the Security Level for Each Zone page, click Local Intranet, and then click Default Level.
  4. On the Adjust the Security Level for Each Zone page, click Next.
  5. On the Completing the Wizard page, click Finish.
  6. 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:
  1. 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.
  2. In the .NET Framework Configuration window, expand Runtime Security Policy in the left pane, and then expand Machine.
  3. Expand Code Groups, and then expand All_Code.
  4. 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:
    Code groupDefault custom code groupChanged custom code group
    LocalIntranet_ZoneIntranet_Same_Site_AccessNetCodeGroup_0
    LocalIntranet_ZoneIntranet_Same_Directory_AccessFileCodeGroup_1
    Trusted_ZoneTrusted_Same_Site_AccessNetCodeGroup_0
    Internet_ZoneInternet_Same_Site_AccessNetCodeGroup_0

REFERENCES

For additional information about the .NET Framework Configuration tool (Mscorcfg.msc), visit the following Microsoft Developer Network (MSDN) Web site:

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kbtshoot kbsettings kbSecurity kbbug KB867632 kbAudDeveloper