Hello,
i created a wcf web service. my service uses EF5 data acceess to fetch data.
i have only one function named GetAllAdminList()
IAdminService.cs
Code
public interface IAdminService {Code
[OperationContract]Code
ListTblAdmin> GetAllAdminList();Code
}Code
public class AdminService : IAdminServiceCode
{Code
public ListTblAdmin> GetAllAdminList()Code
{Code
AdminJobBal adminBal = new AdminJobBal();Code
return adminBal.GetAllAdminList();Code
}Code
}VB.NET
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
An 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.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
C#
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.
TblAdmin Entity is like this
public class TblAdmin
{
public TblAdmin();
public int AdminId { get; set; }
public string AdminName { get; set; }
public string AdminPassword { get; set; }
public string AdminUserName { get; set; }
public string ContactNumber { get; set; }
public DateTime CreatedOn { get; set; }
public string Description { get; set; }
public bool IsActive { get; set; }
public bool IsDeleted { get; set; }
public virtual ICollection TblCities { get; set; }
public virtual ICollection TblCompanies { get; set; }
public virtual ICollection TblCountries { get; set; }
public virtual ICollection TblJobs { get; set; }
public virtual ICollection TblJobTypes { get; set; }
public virtual ICollection TblSkillGroups { get; set; }
public virtual ICollection TblSkills { get; set; }
public virtual ICollection TblStates { get; set; }
}
and my web config file is like thisDon't know what is the main problem,please help me to resolve it.


Umesh Kumar126 reputationPosted Dec 2, 2014, 2:45 AM EST
I think you gonna set the timeout value at Binding at both WCF services and Client.
name="MYwsHttpBinding" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">