Installed MVC 4 Entity framework configuration errors

DebraG

New Member
I have just installed MVC4.According to nuGet package manager, my version of EF is 5.0.0, last updated on 11th Sept 2012When I try to create a new controller (right click controllers -> Add -> Controller), I am faced with an error message and am not able to create a new controller...\[code\]Could not load type 'System.ComponentModel.DataAnnotations.Schema.TableAttribute' from assembly 'EntityFramework, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.\[/code\]I am just getting started with ASP.NET MVC, so if anybody could help me to resolve, it would be much appreciated.From the Package Manager Console, I have tried uninstalling and re-installing Entity Framework as follows but this has had no effect:\[code\]PM> Uninstall-Package EntityFrameworkSuccessfully removed 'EntityFramework 5.0.0' from GD.Successfully uninstalled 'EntityFramework 5.0.0'.PM> Install-Package EntityFrameworkYou are downloading EntityFramework from Microsoft, the license agreement to which is available at http://go.microsoft.com/fwlink/?LinkId=253898&clcid=0x409. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.Successfully installed 'EntityFramework 5.0.0'.Successfully added 'EntityFramework 5.0.0' to GD.Type 'get-help EntityFramework' to see all available Entity Framework commands.PM> \[/code\]Many thanks in advance for all your help.
 
Back
Top