Hi there,
I am using a MVC 2 web application with EF4.
I created my .edmx file in MyProject.EntityModel. I used the POCO generater to create MyProjectModel.Context.tt and MyProjectModel.tt. I then moved MyProjectModel.Context.tt and MyProjectModel.tt files to another project called MyProject.Entities. I have another project for my MVC 2 we application.
In my web project controller file I have the following:
MyProjectEntities db = new MyProjectEntities();
On this declaration I get the following error:
The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.
What I did was to add the App.Config connection string in MyProject.EntityModel to an App.config file in MyProject.Entities. It still gives me the error.
Has any one else encountered this error in my scenario?
Thanks.