"The EntityContainer... does not exist in MetadataWorkspace," says error 11 and 2002.

.net entity-framework linq

Question

I'm getting the following error when I try to compile my web application:

Error 11 Error 2002: The EntityContainer 'SomeEntitieContainerName' for the conceptual model specified as part of this MSL does not exist in MetadataWorkspace.

I have only a *.edmx named BancorlineDB.edmx that has an "Entity Container Name" set to "BancorLineEntidades".

1
2
10/13/2017 3:55:40 PM

Accepted Answer

Sounds like there is either a problem with your configuration or that one of the entity framework files is corrupt.

Fastest way to fix it is probably to delete the model, make sure all references to it in the configuration files are deleted, then regenerate the model from the database.

1
10/2/2009 8:53:29 PM

Popular Answer

Just my cent for this error:

Working on Oracle db schema I modified a size of primary key field on a table. This field is foreign key on another table. I forgot to modify the size for this second table.

In my .Net web project with Entity Framework 5.0 I regenerate the model from database... ERROR 2002 The EntityContainer bla... bla...

I spent a lot of time with this... silly mistake and the more silly information coming from ODT 12.



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