Ask a questionAsk a question
 

AnswerSerialization Problem

  • Wednesday, July 01, 2009 4:40 AMGinni Sharma Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I 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 "cannot persist business logic because type Microsoft. SharePoint.SPList is not serializable". 

    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. 

    This error is coming from somewhere it is serializing the SPList class internally. I have checked and i could not found any serialzable keyword.

    Can anyone help me. 

Answers

All Replies