I am using a webservice in my web-application. Webservice is having 2 methods one is working fine means my webservice is ok, but when I use the second service,through which I am fetching a datatabe, it shows error
System.Web.Services. Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: There was an error generating the XML document. ---> System.InvalidOperationException: Cannot serialize the DataTable. DataTable name is not set.
below is my webservice's code for fetching.
public DataTable Select_Employee_By_Sno(string Emp_Code)
Business_Logic bl = new Business_Logic();
DataTable dt = new DataTable();
Views: 8298 Total Answered: 1 Total Marked As Answer: 1 Posted On: