serialize object with XmlDocument Property
问题 I have to many classes that contains some field and properties of type XmlDocument . When I put the objects of these classes in session (such as state Server, SQL State Server) it is necessary to serialize them. But if we have a property of type XmlDocument and add [Serialize] Attribute above our class, the following error will be appears . Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non