I have a WCF Service which returns some custom objects to a desktop client application. Both projects share the same ObjectLibrary.dll, however when the WCF server return these objects it is returning
ClientApplication.ServerReference.ObjectType
instead of
ObjectLibrary.ObjectType
Is there a way to get the WCF server to return the ObjectLibrary’s class type?
My mistake was that I was trying to reference the Service from the ObjectLibrary, and the Service contained a reference to the ObjectLibrary so it was creating a circular reference. I changed my solution so I had one project for object base classes, one for the service which referenced the base classes, and then defined the object methods in a third project which referenced the server and the base class dlls.