i have only one function named GetAllAdminList()
public interface IAdminService {
[OperationContract]
List<TblAdmin> GetAllAdminList();
}
public class AdminService : IAdminService
{
public List<TblAdmin> GetAllAdminList()
AdminJobBal adminBal = new AdminJobBal();
return adminBal.GetAllAdminList();
Here the code part is returning the listofAdminUser from database.Now When i am invoking the service on setting service as startup project and AdminService.svc.cs as startup page it throws me a errorAn error occurred while receiving the HTTP response to "localhost:13001/AdminService/AdminService.svc" This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.
Here the code part is returning the listofAdminUser from database.
Now When i am invoking the service on setting service as startup project and AdminService.svc.cs as startup page it throws me a error
i can assure u that my data access code works,bcoz i dubug that project and i saw that it return the List perfectly! the problem occures AFTER the return value of List
to check And also i have an another svc that
public class Service1 : IService1 { public string GetName(string Name) { return "hello" + Name; } }
when i make it startuppage it's invoking fine and returning the string.
Don't know what is the main problem,please help me to resolve it.