Mega Code Archive

 
Categories / ASP.Net Tutorial / Configuration
 

Locking Configuration Settings

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>