I'm currently blocked by a strange problem, here is the situation:
I've a client and a server, running with .Net 4.0 framework. I'm using Entity Framework server side, and WCF to communicate between client and Server. I use POCO object on my Entity Framework model.
One month ago, I had a problem: In some case entity framework has already loaded an object and then want to return it when the WCF service is queried.
An User has a collection of Orders, and Orders knows which User handle it---> cyclic references
I searched online how to resolve this and I found this: http://chabster.blogspot.com/2008/02/wcf-cyclic-references-support.html It worked like a charmed for me
I can get data from the server without server, ...
Now I'm trying to call my Save(User) method from the client to the server, and I get this error:
System.ServiceModel.CommunicationException was caught
Message=There was an error while trying to serialize parameter http://tempuri.org/:User. The InnerException message was 'Type 'System.DelegateSerializationHolder+DelegateEntry' with data contract name 'DelegateSerializationHolder.DelegateEntry:http://schemas.datacontract.org/2004/07/System' is not expected. Consider using a DataContractResolver or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribu
View Complete Post