Aditya Khurana
Why Web Services does not support data reader?
Posted by Aditya Khurana in Web Services on Nov 20, 2012
  • 0
  • 1
  • 2994
Do you know the answer for this question? Post it below.
Posted by Manoj Kumar on Nov 29, 2012
  • 0

SqlDatareader reads data from database on bases on live connection.You cannot return a SqlDataReader from a Web Service. This is a stream based object which cannot be serialized to cross machines boundaries over SOAP. You can use the DataSet instead.