c# - WCF issue while updating from 3.5 to 4.0 -


I recently got my VS Solutions and projects upgraded from 3.5 to 4.0 framework. After conversion, I am facing a problem when sending the unit items to the WCF. When I send an institution that does not have any other institution or has no relation with other institutions, then everything works fine ... the data is passed to the WCF. But when the unit has a child, I get the following error when calling my WCF service method:

EntityReference object can not be serialized, not serialized such objects. When the relation shanner is related to a unit object which does not apply to IETTI with relation.

Has any thoughts gone wrong? I did not have any problem while using 3.5 framework 3.5.

Maybe useful?

Comments