Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7079109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:37:51+00:00 2026-05-28T06:37:51+00:00

I created an ASP.NET web application (to consume a WCF Data Service) and added

  • 0

I created an ASP.NET web application (to consume a WCF Data Service) and added a service reference to http://services.odata.org/Northwind/Northwind.svc. Create a web page (.aspx) and added a GridView and Button control.

Wrote the following code:

protected void Button1_Click(object sender, EventArgs e)
{
    var o = new NorthwindSvcRef.NorthwindEntities(new Uri("http://services.odata.org/Northwind/Northwind.svc"));

    //The following works fine
    //------------------------
    //var q = o.Customers.Where(c => c.City == "London").ToList();
    //GridView1.DataSource = q;
    //GridView1.DataBind();


    //Following does not work
    //-----------------------
    var q = o.Customers
       .Where(c => c.City == "London")
       .Select(c => c);

    DataServiceCollection<Customer> oCustomers = new DataServiceCollection<Customer>(q);
    GridView1.DataSource = oCustomers;
    GridView1.DataBind();
}

Once I execute the above code, I am experiencing the following error:

An attempt to track an entity or complex type failed because the
entity or complex type ‘NorthwindSvcRef.Customer’ does not implement
the INotifyPropertyChanged interface.

Can anyone help me on this?

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:37:51+00:00Added an answer on May 28, 2026 at 6:37 am

    When you generate service reference using visual studio in the ASP.NET web app project, INotifyPropertyChange interface is not implemented in the generated proxy classes and that’s why you are given this error. Simplest solution is to generate service refence in other project type (for example WPF or Windows Forms – INotifyPropertyChanged will be implemented automatically) and then copy “Reference.cs” file to your web app (you may need to change namespace inside this file). You must only remember not to generate service reference from web app project in the future because “Reference.cs” file will be overwritten and the error will return.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created MVC ASP.Net Web application and tried insert Thai language data to SQL
I am working on an ASP.Net web application in which several WCF services are
I would like to consume WCF service (created by ASP .NET) with PHP. I
I use VS 2010 Ultimate. I created an 'asp.net web application' from scratch, added
I have the following scenario. I have created an ASP.NET web application (framework 3.5)
It's been a while since I've created a new ASP.NET web application. (I've been
I am working on an ASP.Net web application that must print dynamically created labels
I have created a Web Application in asp.net 2.0. which is working fine on
I've created a web application in asp.net. I've to generate embed code for one
We have created a web application, using ASP.NET, that allows users to upload documents

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.