The entity 'ExamplesWeb.Customer' does not have a key defined

9 posts, 1 answers
  1. Sandeep
    Sandeep avatar
    6 posts
    Member since:
    Feb 2009

    Posted 15 Dec 2009 Link to this post

    Hello Sir/Madam,

                         I am not able to run the ExampleCS_SL project. The error that i receive is "The entity 'ExamplesWeb.Customer' does not have a key defined. Entities exposed by DomainService operations must have at least one property marked with the KeyAttribute." and this error occurs in GridView.CS file. And I am unable to trace the problem. Can you please guide me through this issue.

    Regards,
    Sandeep M Shetty.
  2. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 15 Dec 2009 Link to this post

    Hi Sandeep,

     

    Well, this type of error usually occurs when you try to run our examples with an incompatible version of Ria Servies. If you are indeed using our latest service pack release please make sure that you have the latest WCF Ria Services installed.

    Kind regards,
    Milan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Sandeep
    Sandeep avatar
    6 posts
    Member since:
    Feb 2009

    Posted 15 Dec 2009 Link to this post

    Hi Milan,
                   The Version of the WCF RIA Services Beta Im using is 1.0.0.14 .. Is this the One? 

    Thanks,
    Sandeep M Shetty.
  4. Sandeep
    Sandeep avatar
    6 posts
    Member since:
    Feb 2009

    Posted 16 Dec 2009 Link to this post

    Hi,
      We are currently evaluating your Silverlight product and looking forward to your kind support. I have downloaded the new Silverlight release and finding hard to run the ExampleCS_SL project. Waiting for your reply. :)

    Thank you,
    Sandeep Shetty.
  5. Answer
    Milan
    Admin
    Milan avatar
    1989 posts

    Posted 17 Dec 2009 Link to this post

    Hello Sandeep,

    Hum, seems that you have the latest Ria Services installed.

    This error usually occurs if you try to run the previous version of our examples (2009.3.1103) with the latest Ria. Could you please double check that you are indeed trying to compile the ExampleCS_SL project from our service pack release.


    All the best,
    Milan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Sandeep
    Sandeep avatar
    6 posts
    Member since:
    Feb 2009

    Posted 18 Dec 2009 Link to this post

    Hello Milan,
                       Thanks for the generous reply, I have overcome with the issue. As the latest version of RIA Service wasn't compatible with the latest release of telerik , I tried with the older version of RIA Service. Its working fine now. :)

    Regards,
    Sandeep M Shetty.
  7. Skender
    Skender avatar
    2 posts
    Member since:
    Jul 2008

    Posted 18 Dec 2009 Link to this post

    Hello Sandeep,

    I am also getting the same issue what you stated in the Thread. can you write about  the  older version of RIA service you have downloaded. i mean download path and the verison number.

    Thanks for your help

    Many Thanks
  8. Sandeep
    Sandeep avatar
    6 posts
    Member since:
    Feb 2009

    Posted 18 Dec 2009 Link to this post

    Hi Skender,
                       It seems that their are steps to be followed to migrate from .Net RIA Service to the latest WCF RIA Service. Please follow the link here: http://www.whycantyoucode.com/2009/11/verbose-steps-to-migrate-a-silverlight-application-from-net-ria-services-july-09-to-wcf-ria-services-pdc-09/ . The one I had installed is the July Version(older one).

    But meanwhile I can forward you the older RIA Service, as I couldn't find it on the internet. My mail id is : sandeepmshetty@gmail.com.
    Send me a mail on the given mail ID.

    Regards,
    Sandeep M Shetty.



  9. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 19 Dec 2009 Link to this post

    Hi guys,

    We migrated our examples to the latest WCF RIA Services Beta following the official guide from Microsoft. It is available for download here.

    Best wishes,
    Stefan Dobrev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top