Entity Framework Model Generation Error - entity-framework

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.

Related

Deploy Acumatica Framework Tools fails

I am trying to Deploy Acumatica Framework Tools using the Framework Configuration Wizard and I getting the following error:
Exception occurred while installing resources.
Inner Exception:
Can't find the Visual Studio template items location.
I have Visual Studio 2017 Enterprise running on Windows 10 Pro. Both are up to date.
Any ideas on how to correct this. I’m going to the Acumatica Summit next week and need to do the T100 and T200 course.
Thanks
Tom
The wizard is likely looking for the VS2015 registry folder. Until installers are fixed to check in the VS2017 location I recommend you create the VS2015 registry folders with these 4 dummy string keys pointing to VS2017 folder.
The key values in the picture below point to the default VS2017 folders. I tested this workaround a couple months ago on a colleague computer and we experience no ill effects:
I faced the same problem, but I could not change my registry due to company policy. My regedit.exe was unavailable:
So, to fix this issue I installed Visual Studio 2015 Community Edition .
That fixed the issue.
Do not forget to restart your computer after installation, otherwise - you will get the same error. If you solve this problem with installation of VS2015, you will be able to use Visual Studio Template
in VS2015 only. It will not be available in other versions of Visual Studio.

vs 2015 Error adding entity data model

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.

I can't open .EDMX files in the Entity Data Model designer

I can't find the ADO.NET Entity Data Model in Visual Studio 2012. When I open EDMX it opens in XML only not in designer. When trying to add new item to a project I don't find ADO.NET under Data tab.
I tried almost all solutions proposed on the net but no result:
I removed EF5 and installed EF 6.2 but the problem persist.
I tried to install VS2012 Updates but no change.
Repairing current install no change.
I tried to find ADONETEntityFrameworkTools_enu.msi in the install media but can't find it. -
I tried all other solutions but not working.
I've figured out the problem : when i run ETool.msi from Install Media for repair,
it was an older ver. (EF.4) than the currently installed ver. (EF.6) so it wasn't working.
So i downloaded EFTool ver.6 (same ver. of installed EF) ,run Repair command and it fixed the problem
I had the same problem but perhaps in reverse. I uninstalled VS 2012, reinstalled and when I opened up my v4 EF model it opened in XML rather than the designer.
I uninstalled the EF Designer for VS from the Control Panel, ran EFTools.msi from the installation media and everything was fine.
Perhaps a version compatibility issue like Hussein's.
you should add both EntityFrameWork.dll and EntityFrameWork.SqlServer.dll to your project

Entity framework starter kit on VS 2012

I have downloaded and installed the Entity Designer Starter Kit on both VS 2010 and 2012. I've created a project and have customized that project to allow me to add (for now) three attributes for each field value: See Below: (I'd post the image but I've only started posting here and I don't have 10 points) :(
As you can't see above, the Extension is working...on VS 2010, however, we need to use VS 2012 - so we can have the new support for geography fields in our Model, but it doesn't seem to work in VS 2012. The extension shows up as an installed extension in the Extension Manager in both versions, but doesn't work (or do anything in 2012.) when we build a new Model or open an existing one. :(
I've looked at the manifest for versioning info, and it DOES show up in the Extension Manager as having been installed (in both versions). (See part of Manifest below -- We are using the Professional version of 2012)
<SupportedProducts>
<VisualStudio Version="11.0">
<Edition>VSTS</Edition>
<Edition>VSTD</Edition>
<Edition>Pro</Edition>
<Edition>Express_All</Edition>
</VisualStudio>
<VisualStudio Version="10.0">
<Edition>VSTS</Edition>
<Edition>VSTD</Edition>
<Edition>Pro</Edition>
<Edition>Express_All</Edition>
</VisualStudio>
</SupportedProducts>
Does anyone have any idea why its not running in 2012?
Thanks for any help!!!!!!!
bob
Back in 2010 I found that the Starter Kit did not work, perhaps due to the version being for VS2010 RC.
So I rebuilt it, and today, I've just upgraded it to VS2012.
So you can get it from my Blog.
All I did was run it though the VS upgrade wizard, and then change the manifest to VS2012 and it worked fine. Perhaps you could explain a little more "geography fields", as I've not read up yet on any of the changes in VS2012.
http://www.jsrsoft.co.uk/blog/post/Entity-Framework-Starter-Kit-alternative

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.