Microsoft KB Archive/815165

= HOW TO: Restore the Default Policy Levels for ASP.NET Applications =

Article ID: 815165

Article Last Modified on 4/30/2003

-

APPLIES TO


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

-



IN THIS TASK

 * SUMMARY
 * Trust Level Configuration Files
 * Restore Policy Level Settings
 * REFERENCES



SUMMARY
This step-by-step article describes how to restore the customized policy levels to the default settings for .NET-connected applications.

By default, managed assemblies are assigned one of the four trust levels: Full, High, Low, and None. These trust levels represent groups of specific rights to simplify assigning trust to managed assemblies. You can change the rights that are assigned to the High, Low, and None trust levels to meet the unique requirements of an environment.

Although you must use this level of customization for some environments, it can cause problems when you run assemblies that were designed to run in a specific trust level, because those assemblies may not have access to all resources that they require. This article describes how to restore the original settings that are assigned to each of the policy levels to their default state.

back to the top

Trust Level Configuration Files
The .NET Framework stores copies of the default settings for each policy level in the same folder as the active configuration files. The backup configuration files add the .DEFAULT file name extension. The following table shows the locations of the three active configuration files and the three backup configuration files.

Note Configuration files exist for the High, Low, and None trust levels. However, there is no configuration file for the Full trust level. The Full trust level does not require a configuration file because assemblies that run at that level run without restrictions.

back to the top

Restore Policy Level Settings
To restore the default policy level settings, follow these steps:  Start Windows Explorer, and then move to the following folder:

\ \ Microsoft.NET\Framework\ \CONFIG\

 Rename the active, customized configuration file for the policy level that you want to restore. For example, add a .CUSTOM file name extension. Create a copy of the backup configuration file. For this file, use the same name as the active configuration file by removing the .DEFAULT extension.

Note The backup configuration file has the same file name as the active configuration file, with an additional .DEFAULT file name extension.

back to the top

