关于向varbinary插入100MB的实体框架System.OutOfMemoryException

时间:2012-03-30 23:26:59

标签: asp.net entity-framework entity-framework-4 entity-framework-4.1

上传适用于62MB文件。但是,如果它是100MB,则抛出异常。

我在stackoverflow中发现了一些问题,但没有一个关于数据类型的具体问题。

感谢您的帮助!

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

DataType是varbinary(max)

的applicationHost.config

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

的web.config

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

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

我使用EntityDataModel。设计师抛出了以下异常。

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:2)

看起来您的文件太大,无法记忆。这可能是因为在处理过程中文件的字节被复制了几次,在过程中将它们的大小相乘。

你对这个错误感到惊讶吗?

相关问题