Based on what you posted:
public InitBDResult InitBD()
{
_dc = new CentralDC();
InitBDResult result = new InitBDResult();
result.ord = _dc.Orders.First();
return result;
}
IDBServiceIs this method contained in a class that implements the interface ? This is not entirely clear from your post ....
[DataContract]
public class InitBDResult
{
[DataMember]
public Order ord { get; set; }
}
Is the Order class also labeled [DataContract]and any properties that need to be serialized with attributes[DataMember]
WCF , ( ), [DataContract] , , [DataMember].
[Serializable] WCF . WCF MSDN - !
WCF, , . :
<behaviors>
<serviceBehaviors>
<behavior name="debugging">
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
:
<service name="...." behaviorConfiguration="debugging">
, "- ".