HOW TO: Adjust .NET Framework Security on a Zone-by-Zone Basis

Article translations Article translations
Article ID: 815148 - View products that this article applies to.
Expand all | Collapse all

On This Page

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.



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.
  4. 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.
  5. Click Next.
  6. 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.
  7. Click Next to move to the Completing The Wizard page.
  8. Review the adjusted trust levels and then click Finish to apply your changes.


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.
  4. Click Yes to restore the settings to their defaults.
  5. When you are prompted, click OK to return to the Microsoft .NET Framework Configuration tool.

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
818014 HOW TO: Secure Applications That Are Built on the .NET Framework

Properties

Article ID: 815148 - Last Review: July 8, 2005 - Revision: 2.4
APPLIES TO
  • Microsoft .NET Framework 1.0
  • Microsoft .NET Framework 1.1
Keywords: 
kbhowtomaster kbdll kbtrusts kbsecurity KB815148

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com