Click here to Skip to main content
16,019,843 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i wrote below code like this
public class WcfDataService1 : DataService<durgaentities>
{

#region This method is called only once to initialize service-wide policies.
public static void InitializeService(DataServiceConfiguration config)
{
try
{
config.SetEntitySetAccessRule("*", EntitySetRights.AllRead);//to read entity data table
config.SetEntitySetPageSize("*", 25);

//config.SetServiceOperationAccessRule("GetEmployeeList",
// ServiceOperationRights.All);//to call getemployeelist method
config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V3;

//config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V3;
}
catch (Exception ex)
{
throw ex;
}
finally
{
}
}
#endregion


after i consumed this service as an excel power query and i entered my service url then i am getting my table but not contain any data
i was getting Excel2013 Error like this "we couldn't get data from the DataModel and errror mesage u got like this "The remote server returned an error" please help me i tried so many ways so many days but still i am not getting solution
Posted
Updated 4-Aug-14 0:45am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900