Skip to main content

Microsoft Silverlight

Answered Question Error: Association named xxx defined on entity typeRSS Feed

(0)

sachinkas
sachinkas

Member

Member

0 points

4 Posts

Error: Association named xxx defined on entity type

 I have setup a Silverlight application with RIA services as described in this article:

http://www.silverlightshow.net/items/Creating-applications-with-.NET-RIA-Service-Part-3-Adding-DomainService-class.aspx

I created the Entity Data Model with one table and everything works fine. Then I added another table witha one to one relationship and then build the web project it works fine. But when I build the solution it gives me this error:

 

Association named xxx defined on entity type xxxx is invalid: ThisKey property named 'PeopleId' cannot be found.  

I just add two tables which have a relationship defined in the database. The primary key (which is a foreign key in the second table) has a space in it. [People Id], but for some reason the error shows as PeopleId. I am really freustrated trying to resolve this.

 

The error comes when I create the domain service and rebuild the solution. I tried to do from scratch, still same error. Can someone help

 

 

 

xusun
xusun

Participant

Participant

1069 points

179 Posts

Microsoft
Answered Question

Re: Error: Association named xxx defined on entity type

I could repro this issue.  It looks like a bug.  I will follow up this issue with the team.  Thanks for letting us know the issue.

Thanks,
Xun Sun - MSFT

sachinkas
sachinkas

Member

Member

0 points

4 Posts

Re: Error: Association named xxx defined on entity type

Till then is there any workaround. Would appreciate any links or anything.

sachinkas
sachinkas

Member

Member

0 points

4 Posts

Re: Error: Association named xxx defined on entity type

Has anyone else received this error. I googled it but still did not get a solution.

sachinkas
sachinkas

Member

Member

0 points

4 Posts

Re: Error: Association named xxx defined on entity type

 I guess there is no solution. For now I switched to using ADO .net data services without RIA services. Guess when 2010 is released I will try to use it...

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities