You can lock configuration settings so that they cannot be overridden at a lower level in the configuration hierarchy.
The following Web.config file locks a setting by using the allowOverride="false".
File: Web.config
<configuration >
<location allowOverride="false">
<system.web>
<compilation debug="false" />
</system.web>
</location>
</configuration>
|