The name of the EntityContainer must be unique. There is already an EntityContainer named 'Entities.'

.net c# entity-framework exception-handling visual-studio

Accepted Answer

Most likely, the entity container name in your two EDMX files is the identical. You must alter one of them, if not both.

To access Model Browser, launch the GUI designer. Look for a node that says "EntityContainer: Entities". Toggle it. Change the properties.Name to another object. Restore and construct.

47
1/13/2010 9:30:21 PM

Popular Answer

Taking advantage of this, since it is the first result on Google for the error message.

I once came into this issue because the assembly containing the model/context was changed and a copy with the old name remained in the application's bin directory, just in case anybody else runs into it while only using a single model/context. The old assembly file needed to be deleted as a fix.



Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow