I\'m using WCF service in my application. I need to return a custom object in the service class. The method is as follows:
IService.cs:
[OperationContract]
Custom objects are fine, while MS says you don't have to use the [DataContract] or [datamember] attributes anymore, I haven't been successful without them. Try marking you custom object with the attributes and seeing what is going on. You can get more information as to what is explicitly happening by turning on tracing and using svcutil to get trace.