2
I have looked for several solutions to this error on the internet and unfortunately nothing helped me.
Can anyone help me on how to fix this mistake??
Error 4 The type 'System.Data.Entity.Dbcontext' is defined in an Assembly that is not referenced. You must add a Reference to Assembly 'Entityframework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Within your project, in the part of
References
, the Entity Framework is there?– Leonel Sanches da Silva
Yes, in the library class where the file . edmx
– Wallace Carlos
Class Library? You separated the project into a DLL of Models and another presentation? And the presentation layer has this reference also?
– Leonel Sanches da Silva
The project is not MVC friend, is Webforms and is divided into layers. Answering your question, yes, but has more than two CL (layers).
– Wallace Carlos
Now it’s clearer to me. Each layer that makes use of a context needs to have the package installed. This has been done?
– Leonel Sanches da Silva
Tiago, I already did this procedure and the Gypsy tmb already suggested it in the low response. Gypsy, I have other projects structured in the same way and this happened only when I updated the Entity to 6.1.1
– Wallace Carlos
Which DLL should I reference in the other projects for Entity 6 Entityframework.dll or System.Data.Entity.dll ??
– Wallace Carlos