I have a web application that serialize a very complex object that has about 500 child objects to an SQL 2008 database. The problem is when the object is very large (more than 500 child objects) it generates an outofmemory exception and we need to restart the iis.
I am using the binary serializer in the .NET to serialize the object into a memory stream. I tried using a filestream also but it fails as well.
The total size of the object is when serialized to a file is about 15MB and the web server is a Windows 2008 IIS 7 32bit one.
I don't need to run any queries against this object. Just need to store it somewhere and then retrieve.
So please point me to the right direction here...