Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
StoreEntityListInSession, Error: Type is not marked as Seria
Message
De
03/06/2011 15:28:51
Don Harris
Iu Athletics Computer Services
Indiana, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
StoreEntityListInSession, Error: Type is not marked as Seria
Divers
Thread ID:
01512775
Message ID:
01512775
Vues:
97
Hi All,

MM.Net v.4.0
Visual Studio 2010.
Web Application


I am trying to use the StoreEntityListInSession method for the first time and when I debug, I get the error:

Type 'BizObjEntity' in Assembly 'BizObjProj', Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.

I'm calling it from the myButton_Click method of a button on a webform.

I get no compile errors at all. Here is what it looks like:
        protected void btnMoveToNewYear_Click(object sender, EventArgs e)
        {
            AthlEligMovStudToNewYr movRes = new AthlEligMovStudToNewYr(sourceyear, targetyear);
            this.oAthlEligibility.EntityList = movRes.CarryForwardIsYes;    //this is an mmBindingList
 
            StoreEntityListInSession<AthlEligibilityEntity>(this.oAthlEligibility.EntityList, "CarryForwardIsYes");

//Also, I have tried this with the same results:

            StoreEntityListInSession<AthlEligibilityEntity>(movRes.CarryForwardIsYes, "CarryForwardIsYes");
        }
Can anyone see what I'm missing?

Thanks,
Don

Ps. Also, if I've goofed up the posting of this message in any way, alert me. I'm not
finding Universal Thread to be intuitive or maybe it's just so powerful that it takes
a while to acclimate to.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform