Download large file in ASP.NET WebAPI with AngularJS and IIS
<p>in my ASP.NET WebAPI I am providing a link to my file whcih I want to download. Although I modified the web.config to server larger files with</p>

<pre><code>&lt;security&gt;
  &lt;requestFiltering&gt;
    &lt;requestLimits maxAllowedContentLength="2147483648" /&gt;
  &lt;/requestFiltering&gt;
&lt;/security&gt;
</code></pre>

<p>and</p>

<pre><code>&lt;httpRuntime targetFramework="4.6.1" maxRequestLength="2097152" /&gt;
</code></pre>

<p>I get a Out Of Memory Exception even if I enter the filepath in the adressbar of my browser. Why cant the server serve large files? What am I missing? As a result of the WebAPI-Method I give back the path and then doing a link the user can click.</p>

<p>BR </p>

<p>Tenoda</p>