Source Unreachable issue in installing Entity Framework in Visual Studio 2013 - entity-framework

I am having issues with installing Entity Framework in Visual Studio 2013. I am having following error.
The source at nuget.org [https://www.nuget.org/api/v2/] is unreachable. Falling back to NuGet Local >Cache at C:\Users\9040\AppData\Local\NuGet\Cache
Install-Package : Unable to read package from path 'EntityFramework.6.1.2.nupkg'.
At line:1 char:16
+ install-package <<<< EntityFramework
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidDataException
+ FullyQualifiedErrorId : >NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Please suggest. Thanks

Ok i got it solved. Thought i should share it. I don't know why but Package console does not pick source path from Package Manager Settings. I explicitly had to state the path with Install command and it worked. This is the command
Install-Package EntityFramework -Source https://www.nuget.org/api/v2/
Thanks

Related

Error Installing automapper -version:4.1.0

I am using visual studio 2013
Package Manager Console Host Version 2.8.60610.756
I am trying to install antomapper version 4.1 using this command
install-package automapper -version:4.1.0
but I am getting this error message:
The source at nuget.org [https://www.nuget.org/api/v2/] is
unreachable. Falling back to NuGet Local Cache at
C:\Users[Username]\AppData\Local\NuGet\Cache Install-Package : Unable
to find version '4.1.0' of package 'automapper'. At line:1 char:16
+ install-package <<<< automapper -version:4.1.0
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Please help me resolve this issue
thanks in advance
As per the error message you quoted:
The source at nuget.org [https://www.nuget.org/api/v2/] is unreachable.
Your computer cannot reach nuget. Either your network connectivity is down, or nuget is having a temporary outage.

VS2013 Cant Install almost anything through NUget (specially requiring entityframework)

I can't install Entity Framework via Nuget on Visual Studio 2013 Ultimate.
I've tried:
reinstalling it
update it (vs2013) patch5
.net frameworks fixer (FixDotNet2017.cab)
other nugets versions
EFTools6.1.3ForVS2013.msi
msxml6_SDK.msi
repairing w/ MSXML
dotNetFx45_Full_setup.exe
I've wasted a whole week on this - but in the same PC another VS 2017 works fine..
Here are the outputs:
ENTITYFRAMEWORK Install failed. Rolling back...
Installing 'EntityFramework 6.1.3'.
Successfully installed 'EntityFramework 6.1.3'.
Adding 'EntityFramework 6.1.3' to WebApplication5.
Uninstalling 'EntityFramework 6.1.3'.
Successfully uninstalled 'EntityFramework 6.1.3'.
*Install failed. Rolling back...*
Install-Package : Failed to add reference to 'EntityFramework'.
At line:1 char:17
+ Install-Package <<<< EntityFramework
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
What I really need to DO is add a new item to my solution , an ADO.NET ENTITY DATA MODEL
and the error follows like:
library not registered Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))

How to install MVVMLight through nuget

I need to add MVVM Light toolkit to an existing project.
I run nuget command.. My project is in 4.5 Framework. I got this error
Attempting to resolve dependency 'MvvmLightLibs (≥ 5.0.2.0)'.
Install-Package : 'MvvmLightLibs' already has a dependency defined for 'CommonServiceLocator'.
At line:1 char:16
+ Install-Package <<<< MvvmLight
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPa
ckageCommand
I installed through extensions and updates and it got installed but when i tried to create a new mvvm project using visual studion wizard same this dependency error arises.
How to resolve this..
Install the latest version of NuGet
i agrees with Sievajet. solved the same problem by upgrading to the latest version of NuGet

PDFsharp-MigraDoc-WPF nuget package

I am looking for the PDFsharp-MigraDoc-WPF Nuget package. The pdfsharp site indicates that the package exists, but it is not present in the Nuget Gallery: only a GDI package is there. An attempt to Install-Package by name failed.
PM> Install-Package PDFsharp-MigraDoc-WPF
Install-Package : Unable to find package 'PDFsharp-MigraDoc-WPF'.
At line:1 char:1
+ Install-Package PDFsharp-MigraDoc-WPF
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Is there a configuration change that I need to make (e.g. pointing to another nuget server from the company that publishes PDFsharp-MigraDoc-WPF) in order to get the package?
The PDFsharp site indicates that the NuGet package with the WPF version was not published yet.
For the WPF version you can use the source code package (reference the projects in VS) or get the DLL package.

Microsoft.Activities not found

I am using Visual Studio 2012 premium and have NuGet package installed. From the Package manager console, I issued the Install-Package command to get Microsoft.Activities but I got the following error:
PM> Install-Package "Microsoft.Activities"
Install-Package : Unable to find package 'Microsoft.Activities'.
At line:1 char:1
+ Install-Package "Microsoft.Activities"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Could it be something I did incorrectly, typo or something simple? I tried to Get-Package -ListAvailable and see the Microsoft.Activities there...just can not install it to my project.
Any help would be highly appreciated. Thanks!
The command looks fine. Are you trying to install from Nuget Official Source ( http://nuget.org) ? There is no package by Id Microsoft.Activities. There are packages with ids Microsoft.Activities.UnitTesting and Microsoft.Activities.Extensions..
It looks like Microsoft.ACtivities has been unlisted.
http://nuget.org/packages/Microsoft.Activities
you might want to contact the owner to see what are the alternatives: http://nuget.org/packages/Microsoft.Activities/ContactOwners
from http://wf.codeplex.com/wikipage?title=Microsoft.Activities%20Overview it looks like it might have changed to microsoft.activities.extensions as bhuvak suggested above.