I am working on University Management System on which I am using a WCF service and in the service I am using DataTables and DataSets for getting data from database and datab
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; }