use like this
first increase your bufferrecive size
verify this
https://stackoverflow.com/questions/5337412/buffer-size-in-wcf-service[
^]
Still it happen do like this, i hope it ill work
[ServiceContract]
public interface IMyWCFService
{
[OperationContract]
DataTable StudentRecord();
}
public DataTable StudentRecord()
{
//Student st = new Student();
DataTable dt = new DataTable();
SqlConnection con = new SqlConnection("data source=ggsys03 ; initial catalog=Test ; integrated security=true");
SqlDataAdapter da = new SqlDataAdapter("select * from studentInfo", con);
da.Fill(dt);
//st.StudentTable = dt;
return dt;
}