c# - Out of Memory Exception while reading stream from WEB API -


we having 2 web api apps, 1 web api w1, making call web api app w2, here w2 interacts db , gets huge amount of data 50-100 mb of data. 50-100mb (list<objects>) send across wire w1, w1 try read data w2 has stream , deserialize list<objects>.

we facing problem while reading stream in w1, using

httpresponsemessage.content.readasstreamasync(); 

as call made, "out of memory exception" thrown. if copy paste same code in visual studio immediate window, works perfectly.

is there special feature/priority immediate windows read entire stream without out of memory exception.

i read blogs website throws out of memory exception while reading large object not windows or console.

any 1 has idea why works in immediate window or console application no on web api ( w3wp.exe worker process cause problem)


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -