asp.net mvc - MVC Model Error on TryUpdateModel() -
i have error (see below). @ first glance seems obvious me, however. i've checked everything: model ok; metadata class set ok , i've checked controller , @ time 'tryupdatemodel' called , object expect be. i'm thinking silly been stuck day, recommend anything?
the associated metadata type type 'lms.model.paymentfrequency' contains following unknown properties or fields: siteagreementid, paymenttypeid, paymentcategoryid, obligationstartdate, terminationdate, comments. please make sure names of these members match names of properties on main type.
description: unhandled exception occurred during execution of current web request. please review stack trace more information error , originated in code.
exception details: system.invalidoperationexception: associated metadata type type 'lms.model.paymentfrequency' contains following unknown properties or fields: siteagreementid, paymenttypeid, paymentcategoryid, obligationstartdate, terminationdate, comments. please make sure names of these members match names of properties on main type.
source error:
line 120: paymentfrequency paymentfrequency = this._siterepository.getpayment(convert.toint16(collection["paymentid"])).paymentfrequency; line 121: line 122: tryupdatemodel(paymentfrequency); line 123: line 124: if (!modelstate.isvalid)
it sounds metadata class have attached paymentfrequency model may have properties model doesn't.
Comments
Post a Comment