WCF issue while updating from 3.5 to 4.0
I recently upgraded my VS solution and projects from 3.5 to 4.0 framework. After conversion I am facing a problem when sending entity objects to WCF. When I send an entity which has no other child entities or any relation with other entities, everything works fine... the data is passed to WCF. But when the entity has a child entity I get the following error when callin开发者_Go百科g my WCF service method:
The EntityReference object could not be serialized. This type of object cannot be serialized when the RelationshipManager belongs to an entity object that does not implement IEntityWithRelationships.
Any idea what's gone wrong? I wasn't facing any issues when using framework 3.5.
Maybe this post on MSDN forums will be useful?
精彩评论