title: How do I configure IIS to handle really large file uploads?
body: <p>Platform: IIS 6, ASP.Net 2.0 (.Net 3.5), Server 2003.</p>
  
  <p>I'm building an application that accepts files from a user, processes them, and returns a result. The file is uploaded using HTTP POST to an ASP.Net web form. The application is expecting some large files (hundreds of MB).</p>
  
  <p>I'm using SWFUpload to accomplish the upload with a nice progress bar, but that's not contributing to the issue, because when I bypass it using a standard HTML form pointing at my upload accepter page, I get the exact same error. When using the progress bar, the upload continues to 100%, then fails. With a standard form, the behavior appears to be the same. </p>
  
  <p>I'm having a problem right now uploading a file that's about 150MB. I've changed every settings I can find, but still no luck. </p>
  
  <p>Here's a summary of what I've changed so far:</p>
  
  <p>In Web.config:
  Added this inside system.web:</p>
  
  <pre><code>&lt;httpRuntime executionTimeout="3600" maxRequestLength="1536000"/&gt;
  </code></pre>
  
  <p>In machine.config:
  Inside system.web, changed:</p>
  
  <pre><code>&lt;processModel autoConfig="true" /&gt;
  </code></pre>
  
  <p>to: </p>
  
  <pre><code>&lt;processModel autoConfig="true" responseDeadlockInterval="00:30:00" responseRestartDeadlockInterval="00:30:00" /&gt;
  </code></pre>
  
  <p>and in MetaBase.xml:
  Changed:</p>
  
  <pre><code>AspMaxRequestEntityAllowed="204800"
  </code></pre>
  
  <p>to:</p>
  
  <pre><code>AspMaxRequestEntityAllowed="200000000"
  </code></pre>
  
  <p>When the upload fails, I get a 404 error from IIS. My web form does not begin processing, or at least, it doesn't make it to the Page_Load event. I threw an exception at the beginning of that handler, and it doesn't execute at all on large files. </p>
  
  <p>Everything works fine with smaller files (I've tested up to about 5.5MB). I'm not exactly sure what file size is the limit, but I know that my limit needs to be higher than 150MB, since this is not the largest file that the client will need to upload. </p>
  
  <p>Can anyone help?</p>