contract class list should have a public constructor with no aurguement

“contract class list should have a public constructor with no argument” guys i am getting this error when ever i try to add my DP class to the visual studio i get this error i checked contract class every thing looks normal… any suggestion!!! how ever i am able to add other rdp class to same dataset.

please check your contract class extends from any other main class. please remove and do the Incremental CIL

I think you have taken one the parameter in contract class with datatype of List.

So in the parm method of that parameter,add one more attribute as follows;

[
DataMemberAttribute(‘Company’),
AifCollectionTypeAttribute(“companyName”, Types::String),
SysOperationLabelAttribute(‘Company’),
SysOperationDisplayOrderAttribute(‘02’)
]

The attribute with bold font above should be added in order for the resolution of error.

Hope this helps.