.NET OutOfMemoryException on XMLSerializer.Serialize

Posted by Micah on Stack Overflow See other posts from Stack Overflow or by Micah
Published on 2010-05-10T19:19:50Z Indexed on 2010/05/10 19:24 UTC
Read the original article Hit count: 296

I have a web site that is throwing OutOfMemoryExceptions on whenever it gets to the following spot in my code:

XmlSerializer xs = new XmlSerializer(t, xoverrides);

Seeing how this only happens when it is on the web server, i don't have a ton of information on why this is happening. I know that the objects that it is serializing aren't anything too serious-- definitely less than a MB each.

Have you had this before? Feel like helping me diagnose the issue? Any help is appreciated.

Thanks!

© Stack Overflow or respective owner

Related posts about outofmemoryexception

Related posts about ASP.NET