Serialization ProblemI am using Infopath 2007 with code. I have used SPList object in it and have declared it as a member variable. Now whenever i submit my form i get an error that &quot;cannot persist business logic because type Microsoft. SharePoint.SPList is not serializable&quot;.  <div><br/></div> <div>I am not getting why this error is coming as i am not serializing this class. I need to define SPList object globally as it is used in different functions in the FormCode class. </div> <div><br/></div> <div>This error is coming from somewhere it is serializing the SPList class internally. I have checked and i could not found any serialzable keyword.</div> <div><br/></div> <div>Can anyone help me. </div>© 2009 Microsoft Corporation. All rights reserved.Tue, 07 Jul 2009 07:16:28 Zbb22619a-964e-4dd3-a15d-7908717e6eefhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/bb22619a-964e-4dd3-a15d-7908717e6eef#bb22619a-964e-4dd3-a15d-7908717e6eefhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/bb22619a-964e-4dd3-a15d-7908717e6eef#bb22619a-964e-4dd3-a15d-7908717e6eefGinni Sharmahttp://social.msdn.microsoft.com/Profile/en-US/?user=Ginni%20SharmaSerialization ProblemI am using Infopath 2007 with code. I have used SPList object in it and have declared it as a member variable. Now whenever i submit my form i get an error that &quot;cannot persist business logic because type Microsoft. SharePoint.SPList is not serializable&quot;.  <div><br/></div> <div>I am not getting why this error is coming as i am not serializing this class. I need to define SPList object globally as it is used in different functions in the FormCode class. </div> <div><br/></div> <div>This error is coming from somewhere it is serializing the SPList class internally. I have checked and i could not found any serialzable keyword.</div> <div><br/></div> <div>Can anyone help me. </div>Wed, 01 Jul 2009 04:40:54 Z2009-07-01T04:40:54Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/bb22619a-964e-4dd3-a15d-7908717e6eef#8f1ef7f9-50bc-4a3c-9f7e-c753b7eaa3cbhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/bb22619a-964e-4dd3-a15d-7908717e6eef#8f1ef7f9-50bc-4a3c-9f7e-c753b7eaa3cbSerge Luca [MVP]http://social.msdn.microsoft.com/Profile/en-US/?user=Serge%20Luca%20%5bMVP%5dSerialization ProblemHi Ginni,<br/> <br/> see my answer in your other <a href="http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/5f396325-6408-4142-a902-ebdc8d2d5fa8">thread</a> .<br/> <br/> Serge Luca<hr class="sig">Serge Luca; blog: http://www.redwood.be Thu, 02 Jul 2009 07:30:39 Z2009-07-02T07:30:39Z