title: How can I determine which parent config file is locking a web.config setting?
body: <p>When I open my ASP.NET site in IIS and try to open the .NET Trust Levels, I get an error message:</p>
  
  <hr>
  
  <p>.NET Trust Levels
  There was an error while performing this operation.</p>
  
  <p>Details: </p>
  
  <p>Filename: \?\C:\inetpub\wwwroot\myapp\web.config</p>
  
  <p>Line number: 445</p>
  
  <p>Error: This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".</p>
  
  <hr>
  
  <p>I've checked a few places, but I haven't found anything that seems like it would be locking that setting.  Is there a systematic way of determining where that setting is locked?</p>
  
  <p>I'm using IIS 7.5 and .NET 3.5 sp1.</p>