Reputation: 31
I'm having a hard time with this error. The wizard of ADO.Net
Entity Data Model just closes at the mid of the process.
I'm using VS 2013
Update 4, Entity Framework 6.1.3
and .NET Framework 4.5
. It is a ASP.NET MVC 5 project. And I'm working onWindows Server 2012 R2
with EF Tools installed.
I have tried several version of EF
, including 6.0.0
, 6.1.0
, even 5.0.0
on a ASP.Net MVC 4
project and nothing.
On this MVC 4 project using EF 5.0.0
, I was able to proceed on the wizard, but it gave me this error when I chose the DB and proceeded:
Unable to generate the model because of the following exception: 'System.TypeLoadException: Could not load type 'System.Data.Entity.Core.Mapping.EntityContainerMapping' from assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
I also repaired VS but nothing changed.
Upvotes: 2
Views: 2536
Reputation: 21
One possible solution is to remove existing data connections. Go to View and select Server Explorer in your Visual Studio edition. Look for data connections that might be marked as bad, right click and delete the connection. The Data Model Wizard should now be functioning correctly.
Upvotes: 2