I was trying to figure out which version of entity framework and ODP.NET should be used with MVC4 (Dot NET 4.0).
I have Visual Studio 2010 & have created MVC 4 app.
Then I installed EntityFramework
and
while installing Oracle.ManagedDataAccess.EntityFramework
I got following error
Could not install package 'Oracle.ManagedDataAccess.EntityFramework
12.1.021'. You are trying to install this package into a project that targets '.NETFramework,Ve rsion=v4.0', but the package does not
contain any assembly references or content files that are compatible
with that framework. For more information, contact the package author.
Can some one please guide me on how to install EntityFramework for oracle using Visual Studio 2010.
Thanks!!! Help will be appreciated.
Related
I am trying to install the SSIS code check Extension from VS 2017
I am Getting error as
Prerequisites Missing :
Identifier : Microsoft.Net.Component.4.5.1.TargetingPack
Name : .NET Framework 4.5.1 targeting pack
Version : [16.0.28517.75,17.0)
I have tried to install the 4.5.1 framework alone, still same error.
Please suggest if you have come across this error or any alternative extension that we can use for the same.
Based on the official documentation:
A targeting pack lets your app target a specific version of .NET Framework when developing in Visual Studio and some other development environments. A developer pack includes a specific version of .NET Framework and its accompanying SDK along with its corresponding targeting pack.
To download the Microsoft .NET Framework developer pack, you can refer to the following page:
Download .NET Framework 4.5.1
Im using Visual Studio 2017. I follow the instructions from this answer:
Interoperate between ASP.NET MVC and Oracle DB (12c)
I can connect to my Oracle server using Server Explorer.
Install From Nuget
Oracle.ManagedDataAccess
Oracle.ManagedDataAccess.EnitityFramework
Oracle.Web
But doesn't show on the Entity Data Model Wizard screen as provider.
What I'm missing?
To connect to oracle with EF 6.2, first install the Oracle Developer Tools for Visual Studio 2017. Then add your tnsnames.ora in C:\Program Files (x86)\Oracle Developer Tools for VS2017\network\admin
Install From Nuget
Oracle.ManagedDataAccess ,
Oracle.ManagedDataAccess.EnitityFramework
Once you clean and rebuild your solution you will be able to add your EF class with the Data Model Wizard.
How can I resolve this error? I have added the Entity Framework 6.1.3 from this link: Download EntityFramework 6.1.3 for Visual Studio 2013 (after uninstalling and re-installing it again and again)
Now that it has been added and in the project created a .emdx file using ADO.NET Entity Data Model. When I try to build it, the following error pops:
EntityFramework.dll not found (after Compilation)
Don't uninstall the Visual Studio. Installing the Entity Framework 6 Tools for Visual Studio, only makes it possible to use EF features in the VS IDE.
To use EF in your application install the NuGet Package for EF:
Install-Package EntityFramework
The EntityFramework.dll and EntityFramework.SqlServer.dll are added to your solution.
I am currently on visual studio 2013 . Now I ran the nuget command
Install-Package Microsoft.AspNet.Mvc -Pre
Now the message clearly says
: Could not install package 'Microsoft.AspNet.Mvc 6.0.0-beta2'. You are trying to install this package into a project that targets
'.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information,
contact the package author.
Now the package it should install Asp.net Mvc 6.0.0 Beta2 . Now Is that not supported on 2013 yet ? Or should I have to do any extra step. To run it on VS 2013?
Your project uses .NET Framework 4.5, but the MVC 6 needs newer framework(.NET Framework 2015 Preview):
https://msdn.microsoft.com/en-us/library/ms171868%28v=vs.110%29.aspx#core
I installed Visual Studio 2012 and migrated a project from Visual Studio 2010 with Entity Framework 4.3 and .Net Framework 4.0
Now I would like to reference Entity Framework 5.0 and .Net 4.5
BUT when I go to the Manage Nuget Package window and search for EntityFramework. It says that Entity Framework 5 is already installed (there is no 'Install' button and I have a green check). This is strange because when I take a look in my explorer window for this project and get the properties of the reference 'EntityFramework' I see that this is the version 4.4.0.0. I agree that the path is told to be 5.0 but what? I don't understand anymore which version is installed.
Any help please?
Thanks :)
Remove EntityFramework package from your project, switch project to .NET 4.5 and add the package again. EF 4.4 and 5.0 represent "the same package" but the difference is the version of .NET they are targeting.