title: "When the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file."
body: <p>So I get this error when publishing my ASP.NET MVC application. It works fine locally:</p>
  
  <blockquote>
    <p>" This happens when the site administrator has locked access to this
    section using <code>&lt;location allowOverride="false"&gt;</code> from an inherited
    configuration file.</p>
  </blockquote>
  
  <p>I had this error before that I fixed:</p>
  
  <blockquote>
    <p>"System.Security.SecurityException: Request for the permission of type
    'System.Security.Permissions.SecurityPermission, mscorlib,
    Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
    failed."</p>
  </blockquote>
  
  <p>I used the following code in my Web.config file:</p>
  
  <pre><code>&lt;securityPolicy&gt;
    &lt;trustLevel name="Full" policyFile="internal"/&gt;
  &lt;/securityPolicy&gt;
  </code></pre>
  
  <p>So does anyone know how I can change my: <code>"&lt;location allowOverride="false"&gt;</code> to true? Cause that must be the problem.</p>