EntityFramework 6 out of memory exception

dbset entity-framework-6

Question

Hej,

I have a table in database that holds compressed large size file.

when I try to read that file via a Ef6. It throws an out of memory exception.

Any help would be appreciated.

My code is like

var payload = repositoryContext.Set<DocumentStore>()  
  .Include(document => document.DocumentStorePayloadData)
  .Single(document => document.Id == 
documentStoreId).DocumentStorePayloadData;``
1
0
9/18/2017 12:29:19 PM

Popular Answer

If you are running this in Visual Studio with debug, I think it only runs as 32 bit. If you have IIS running in 64-bit on your machine, see if you can run via that instead of via the debugger. Otherwise, you only have 2 gb total ram which could cause problems trying to load a 500 meg file.

0
9/20/2017 4:32:14 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow