title: How to change the maxAllowedContentLength of IIS 7.0?
body: <p>Ii have a problem similar to: <a href="https://stackoverflow.com/questions/4022434/how-to-set-the-maxallowedcontentlength-to-500mb-while-running-on-iis7">How to set the maxAllowedContentLength to 500MB while running on IIS7?</a></p>
  
  <p>The difference is that I have already modified my <code>web.config</code> to accept files upto 2 Gb in size but when try and upload a large file, I get the following error: </p>
  
  <blockquote>
    <p>The request filtering module is configured to deny a request that exceeds the length of the content.</p>
  </blockquote>
  
  <p>my <code>web.config</code> is this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
      &lt;system.web&gt;
          &lt;httpRuntime executionTimeout="999999" maxRequestLength="2097151"/&gt;
          &lt;customErrors mode="Off"/&gt;      
          &lt;compilation debug="true" strict="false" explicit="true" targetFramework="4.0" /&gt;
              &lt;membership&gt;
              &lt;providers&gt;
              &lt;clear/&gt;
              &lt;/providers&gt;
          &lt;/membership&gt;
          &lt;profile&gt;
              &lt;providers&gt;
              &lt;clear/&gt;
  
              &lt;/providers&gt;
          &lt;/profile&gt;
          &lt;roleManager enabled="false"&gt;
              &lt;providers&gt;
              &lt;clear/&gt;
  
              &lt;/providers&gt;
          &lt;/roleManager&gt;
  &lt;/system.web&gt;
  &lt;system.webServer&gt;
      &lt;security&gt;
          &lt;requestFiltering&gt;
              &lt;requestLimits maxAllowedContentLength="2097151" /&gt;
          &lt;/requestFiltering&gt;
      &lt;/security&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p></p>
  
  <p>I still receive the error when i try to upload a file that it is only <code>131 MB</code>.</p>
  
  <p>So, what should I set in the <code>maxAllowedContentLength</code> settings to allow people to upload files over 100 MB please?</p>