EntityFramwork System.OutOfMemoryException on 100MB upload

Posted by Win on Stack Overflow See other posts from Stack Overflow or by Win
Published on 2012-03-30T23:26:58Z Indexed on 2012/03/30 23:29 UTC
Read the original article Hit count: 216

Upload works fine for 62MB file. However, it throws exception if it is 100MB.

I found few questions in stackoverflow, but none is very specific about datatype.

Appreciate your help!

ASP.Net 4, IIS7, EntityFramework 4.1, Visual Studio 2010 SP1, SQL 2008

DataType is varbinary(max)

applicationHost.config

<section name="requestFiltering" overrideModeDefault="Allow" />

web.config

<httpRuntime maxRequestLength="1148576" executionTimeout="3600"/>

<security >
  <requestFiltering>
    <requestLimits maxAllowedContentLength="112400000" />
  </requestFiltering>
</security>

enter image description here

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about entity-framework