views:

36

answers:

1

After converting my data access layer project from EntityFramework v1 to v4 a got a bunch of errors for each of the entity classes:

Error 10016: Error resolving item 'EntityTypeShape'. The exception message is: 'Unresolved reference 'NS.EntityName1'.'. DataAccessLayer\Model.edmx

and

Error 10016: Error resolving item 'AssociationConnector'. The exception message is: 'NS.EntityName1'.'. DataAccessLayer\Model.edmx

Does anybody know what is this and how to fix it?

A: 

I had the exact same issue. I don't know if this is your issue or not, but I found by looking at the edmx in the xml view that I had duplicate references in the xml for each of the items with that error. All I had to do was remove the duplicate references and everything worked.

Here's an example of what I mean:

<EntityTypeShape EntityType="PackageManagementEntityModel.Package" Width="1.5" PointX="0.75" PointY="0.75" Height="3.5644742838541665" IsExpanded="true" />
<EntityTypeShape EntityType="PackageManagementEntityModel.ShipLane" Width="1.5" PointX="2.75" PointY="0.75" Height="1.7566536458333331" IsExpanded="true" />
<EntityTypeShape EntityType="PackageManagement.EntityModel.Package" Width="1.5" PointX="0.75" PointY="0.75" Height="3.5844742838541652" />
<EntityTypeShape EntityType="PackageManagement.EntityModel.ShipLane" Width="1.5" PointX="2.625" PointY="0.75" Height="1.7566536458333335" />
John Kraft
Thanks, but unfortunately this is not my case
Max