title: file upload in asp.net shows 404 error
body: <p>I have already set the file limits in C# file so that it checks for the file size </p>
  
  <pre><code>int filesize = personalFileUpload.PostedFile.ContentLength;
  
   if (filesize &lt;= 26214400)
  {
  
  }
  </code></pre>
  
  <p>also in my web config file I have the following code:</p>
  
  <pre><code> &lt;httpRuntime executionTimeout="9999" maxRequestLength="2097151" requestValidationMode="2.0"/&gt;
  </code></pre>
  
  <p>and </p>
  
  <pre><code>  &lt;system.webServer&gt;
      &lt;modules runAllManagedModulesForAllRequests="true"/&gt;
      &lt;security&gt;
        &lt;requestFiltering&gt;
          &lt;requestLimits maxAllowedContentLength="104857600" /&gt;
        &lt;/requestFiltering&gt;
      &lt;/security&gt;
    &lt;/system.webServer&gt;
  </code></pre>
  
  <p>but still I get this error when I attach a file of about 200 MB in size:</p>
  
  <pre><code>Server Error
  
  404 - File or directory not found.
  
  The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
  </code></pre>
  
  <p>1) Is my code correct?
  2) What modifications do I need to make?</p>