I am using following code to get all the pages of pages WCF Service:
var ent = new DataSource(new Uri("http://api.abc.com/Service.svc"));
ent.Credentials = new NetworkCredential("username", "pass");
DataServiceCollection<Rentals> rentals = new DataServiceCollection<Rentals>(ent.Rentals);
while (rentals.Continuation != null)
{
rentals.Load(ent.Execute<Rentals>(rentals.Continuation));
}
foreach (var r in rentals)
{
Response.Write(r.ListingID + "<br />");
}
but I am getting this error:
An attempt to track an entity or complex type failed because the entity or complex type ‘NorthwindService.ServiceReference1.Rentals’
does not implement the INotifyPropertyChanged interface.
I think You might not enable code generation of binding interfaces. This is covered in step 2 of the walk-through as per this link
http://blogs.msdn.com/b/astoriateam/archive/2009/09/01/introduction-to-data-binding-in-ctp2.aspx.
Go try setting the environment variables as mentioned in step 2 and then right-click your service reference and select “Update Service Reference…”