title: HttpException (0x80004005): Maximum request length exceeded
body: <p>Sorry StackOverflow, I know this is already asked and found lot of answers and i tried almost all and seems alright on config but throws exception so had to bring here.</p>
  
  <p>I am limiting user to upload maximum 8 photos hince look like maximum request length exceeded.</p>
  
  <p>I referenced from :</p>
  
  <p><a href="https://stackoverflow.com/questions/4548305/maximum-value-of-maxrequestlength">Maximum value of maxRequestLength?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/3853767/maximum-request-length-exceeded">Maximum request length exceeded</a></p>
  
  <p>and this is in my config file:</p>
  
  <pre><code>  &lt;location path="MyHome.aspx"&gt;
   &lt;system.web&gt;
    &lt;httpRuntime maxRequestLength="1048576" executionTimeout="3600" /&gt;
   &lt;/system.web&gt;
   &lt;/location&gt;
   &lt;system.webServer&gt;
      &lt;defaultDocument&gt;
          &lt;files&gt;
              &lt;add value="Home.aspx" /&gt;
          &lt;/files&gt;
      &lt;/defaultDocument&gt;
    &lt;/system.webServer&gt;
  &lt;system.webServer&gt;
  &lt;security&gt;
    &lt;requestFiltering&gt;
      &lt;requestLimits maxAllowedContentLength="1073741824" /&gt;
    &lt;/requestFiltering&gt;
   &lt;/security&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p>Can someone help me on this, What am i doing wrong so my file are not uploading and throwing above exception?</p>
  
  <p>Thank you and Sorry for my bad English.</p>