Entity Developer and MVC 6 can't create Template code

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
Zero-G.
Posts: 391
Joined: Sat 09 Dec 2006 12:20

Entity Developer and MVC 6 can't create Template code

Post by Zero-G. » Thu 22 Oct 2015 13:33

Hey
Just started from scratch.
Create a new Project, ASP.NET Framework 4.6! VB.NET
Then, start NuGet and update all dependencies.
Add Entity Framework 6 (Version 6.1.3)
After that, I created a new Entity Model (.edml) Code First Aproach.
I imported an existing database -> At the end, I want to have the Code first!
But, when I add a template (VB.NET Entity Template) and Change the Entity Framework from the models Settings to 6, I get the error
1 Model validation for Entity Framework 6 is not supported: the 'EntityFramework.dll' assembly is not available or .NET Framework 4.5 is not installed.

The error is right, because i use Framework 4.6...
How Please give me advise
THX

Zero-G.
Posts: 391
Joined: Sat 09 Dec 2006 12:20

Re: Entity Developer and MVC 6 can't create Template code

Post by Zero-G. » Thu 22 Oct 2015 13:55

Hey
Sorry, because of some Problems with Visual Studio (because the first Code was generated with EF 5 -> So I had over 8k+ Errors...) The Generation failed.
After a restart of VS and Entity Developer, the "error" still is visible, but I was able to run the Code Generation, now the Code Looks good. - Even the error is still there

THX

Shalex
Site Admin
Posts: 8247
Joined: Thu 14 Aug 2008 12:44

Re: Entity Developer and MVC 6 can't create Template code

Post by Shalex » Fri 23 Oct 2015 15:56

1. Have you added the reference to EntityFramework.dll v6 in the project where the *.edml model resides? This is actual when a solution includes several projects.

2. Specify the version, edition, and service pack of your Windows.

3. Tell us the exact version and edition of your Visual Studio (Help > About).

4. Navigate to Tools > Entity Developer > About and specify your version (x.x.x).

Zero-G.
Posts: 391
Joined: Sat 09 Dec 2006 12:20

Re: Entity Developer and MVC 6 can't create Template code

Post by Zero-G. » Tue 17 Nov 2015 14:25

Hey

I found now a solution to this Problem:
I have copied the EntityFramework.dll and EntityFramework.SqlServer.dll file into the Folder where Entity Framework is installed.
in my case: C:\Program Files (x86)\Devart\EntityDeveloper

Now everyhting works fine.
To answer your questions:
1') Yes I have
2) Edition = Windows 10 Pro (including Treshold 2 update)
3) Visual Studio Enterprise 2015 Version: 14.0.23107.0 D14REL
4) 5.8.734

THX

Shalex
Site Admin
Posts: 8247
Joined: Thu 14 Aug 2008 12:44

Re: Entity Developer and MVC 6 can't create Template code

Post by Shalex » Fri 20 Nov 2015 11:29

Zero-G. wrote:I found now a solution to this Problem:
I have copied the EntityFramework.dll and EntityFramework.SqlServer.dll file into the Folder where Entity Framework is installed.
in my case: C:\Program Files (x86)\Devart\EntityDeveloper
That is a correct approach for the standalone version of Entity Developer.

Post Reply