Microsoft KB Archive/815148

From BetaArchive Wiki

Article ID: 815148

Article Last Modified on 7/8/2005



APPLIES TO

  • Microsoft .NET Framework 1.0
  • Microsoft .NET Framework 1.1



SUMMARY

This article describes how to adjust the .NET Framework security on a zone-by-zone basis. The level of trust that you assign to an assembly determines what system resources that assembly has access to. By default, trust is assigned to managed assemblies based on the zone that the assembly resides in. For example, assemblies that run from the local computer receive the Full trust level. Assemblies that run from the Internet are assigned the None trust level. This article describes how to adjust the trust levels that are assigned to different zones and thereby to assemblies that run from those zones.

back to the top

Adjust Trust Level for a Zone

  1. On the taskbar click start. Point to Settings and then click Control Panel.
  2. Double-click to open the Administrative Tools folder and then double-click to run the Microsoft .NET Framework Configuration tool.
  3. Right-click Runtime Security Policy and then click Adjust Security.


The Security Adjustment Wizard appears.

  1. At the What Would You Like To Modify page, select either Make Changes To This Computer or Make Changes For The Current User Only, as appropriate.
  2. Click Next.
  3. At the Adjust The Security Level For Each Zone page, select the zone that you want to adjust the trust level for. Move the slider to the level that you want.


From top to bottom, the positions represent the Full trust level, the High trust level, the Low trust level, and the None trust level. To restore the default trust level for a zone, click Default Level.

  1. Click Next to move to the Completing The Wizard page.
  2. Review the adjusted trust levels and then click Finish to apply your changes.


back to the top

Restore Default Trust Levels for All Zones

  1. On the taskbar click start. Point to Settings and then click Control Panel.
  2. Double-click to open the Administrative Tools folder and then double-click to run the Microsoft .NET Framework Configuration tool.
  3. Right-click Runtime Security Policy and then select Reset All.


The Reset All Policy Levels dialog box appears.

  1. Click Yes to restore the settings to their defaults.
  2. When you are prompted, click OK to return to the Microsoft .NET Framework Configuration tool.

back to the top

REFERENCES

For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

315736 HOW TO: Secure an ASP.NET Application by Using Windows Security


315588 HOW TO: Secure an ASP.NET Application Using Client-Side Certificates


back to the top

818014 HOW TO: Secure Applications That Are Built on the .NET Framework


Keywords: kbhowtomaster kbtrusts kbdll kbsecurity KB815148