.NET OutOfMemoryException on XMLSerializer.Serialize

前端 未结 2 2047
庸人自扰
庸人自扰 2021-02-15 14:46

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         


        
2条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-15 15:32

    If I recall from similar problems a while back, the XmlSerializer needs a ton of memory more than the data its processing. I'm not sure why this is the case though.

提交回复
热议问题