vs 2015 Error adding entity data model - entity-framework

I get the following error trying to add a new entity model. Any ideas on how to troubleshoot or fix this?
An error occurred loading the entity data model tools package. failed
to load entity data model tools package. the result is -2147024894
Visual Studio 2015 Update 1
v14.0.24720.00
Entity Framework Nuget Package
v6.1.3
Microsoft .net 4.6.0
UPDATE
I tried installing this, it worked once and then after rebooting a couple days later no longer fixed the issue. It's back:
I was able to fix this by downloading the entity framework 6.x t4 templates and installing them from this: https://visualstudiogallery.msdn.microsoft.com/18a7db90-6705-4d19-9dd1-0a6c23d0751f?SRC=VSIDE

I was able to get around this error by changing the framework from version 4.x to 4.5 on my project and then restarting visual studio. It took some tinkering but it appears this occurs because the Visual Studio 2015 Entity Model Package wizard is dependent on something in the 4.5 framework.

Related

Visual Studio 2012 with .NET 4 Framewrk install Entity Framework 6 tools for Visual Studio 2012

As mentioned in the title I need to modify a very old project. It uses .NET 4 Framework and connects to a local SQLite database. I used Visual Studio 2012 to avoid compatibility problems.
I cannot open the .EDMX file - I get this error:
Error 10027: The XML namespace for the conceptual model's Schema element is not supported on this project's target framework version.
I tried to install Entity Framework 6 because I read that should resolve the problem, but I'm not able to find it anywhere.
How can I fix this problem?

Entity Framework Model Generation Error

Im using visual studio 2017, and trying to generate a data model for an existing database, and I get below error. Tried with both EF 5 and EF 6, but same error.
Found below answer on stackoverflow and tried reinstalling EF via package manager console but it did not solved the issue.
Package Installation Error - Entity Framework
Searched for an answer on this but was unsuccessful. Thanks for the help.
This was working in VS 2017, but today only I got to know that I get this error when edmx is generated from DB.
As I solution I repaired VS 2017, but did not work.
Finally, uninstalled an reinstalled VS 2017 and now its working. But Im yet to install VS 2017 - 15.6.4 update on the new VS installation.
Thanks all for the help.

Package restore fails when installing EntityFramework 6.1.3 in Visual Studio Community 2017

I'm trying to install the EntityFramework 6.1.3 (latest stable version) dependency in a .NETStandard 1.4 class library but I keep getting a Package restore failed error. I get the same error with previous versions of EntityFramework (I tried everything back to v6.1.0). I've tried restarting Visual Studio and restarting the VM I'm running it in to no avail.
What am I doing wrong?
You need to use the entity framework core with .net standard not entity framework 6
https://www.nuget.org/packages/Microsoft.EntityFrameworkCore/

Scaffolding a migration programatically in entity framework 5 code first

I am working on a system which scaffolds a migration from inside our code using ToolingFacade.
The system worked fine in entity framework 4.3.1. After the Upgrade to 5.0 I see that the correct entity framework version is loaded when starting out tool, however when I call the scaffold method I get the following exception:
Could not load type 'System.Data.Entity.Migrations.Design.ToolingFacade+ScaffoldRunner'
from assembly 'EntityFramework, Version=4.1.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.
Does anyone know why calling a method in entity framework 5.0 requires an older version dll?
I ran into this issue recently when using EF6. Visual Studio required me to re-install EntityFramework via the Package Manage console to get things working again. Note that when I did so, the console output suggested that it had no idea that EF was installed before; somehow the association had been lost. Perhaps this is why the tooling assembly or assemblies weren't being loaded.
In any case, reinstalling the package via the console (and a restart of Visual Studio) solved the problem for me.

Issues with the new Entity Framework (June 2011 CTP causing unknown errors)

So I installed Entity Framework June CTP day before and all was fine until I went to add POCO's to the EF, that's when I got this error
So I thought to myself 'It must have been the CTP that's causing this, so I went and unloaded it. I restarted Visual Studio and was greeted with this message:
I hit No and Visual Studio finished loading my project. When I once again tried to add the POCO's I was greeted with this error:
So does anyone know what's going on and how I can resolve this issue? I know Entity Framework 4.2 has new items but for the time being I prefer the POCO way of doing things.
EF CTP 2011 is very first preview of EF 4.2. It also shows only subset of features expected in EF 4.2. First of all it is not for developing production code and it should not be installed on the machine where you write a production EF code.
It is expected that CTP can contain bugs - that is why CTPs are published - to collect feedback and find bugs. It is not clear what you actually did to get the error but if you have a technical problem with CTP ask on EF pre-release forum for help.
Why not simply remove EF 4.2 ? Removal guide here: http://blogs.msdn.com/b/adonet/archive/2011/06/30/announcing-the-microsoft-entity-framework-june-2011-ctp.aspx
I had exactly same problem and resolved it by uninstalling "SQL Server Tools for Data Framework June 2011 CTP" - download it at http://www.microsoft.com/download/en/details.aspx?id=26660, run and select the Remove option.
After that I was able to recover the Entity Framework tools to SP1 state using the steps in Uninstall section described at
http://blogs.msdn.com/b/adonet/archive/2011/06/30/announcing-the-microsoft-entity-framework-june-2011-ctp.aspx.