I have a WCF service from which I want to return a DataTable. I know that this is often a highly-debated topic, as far as whether or not returning DataTables is a good pract
There are 3 reason for failed return type as datatable in WCF services
You have to specify data table name like:
MyTable=new DataTable("tableName");
When you are adding reference on client side of WCF service select reusable dll system.data
Specify attribute on datatable member variable like
[DataMember]
public DataTable MyTable{ get; set; }