When running Enable-Migrations in my ASP.NET MVC5 project (Powershell v5 and Visual Studio 2015) I received the error below. I tried uninstalling and reinstalling EntityFramework (v6.1.3), but no luck. Does anyone know how to solve it?
The name type "Microsoft.VisualStudio.Shell.Package" is ambiguous, it can be "Microsoft.VisualStudio.Shell.Package, Microsoft.VisualStudio.Shell.14.0, Version = 14.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a 'or' Microsoft .VisualStudio.Shell.Package, Microsoft.VisualStudio.Shell.11.0, Version = 14.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a '. In C: \ PROGRAM FILES (X86) \ MICROSOFT VISUAL STUDIO 14.0 \ COMMON7 \ IDE \ EXTENS \ MSHGPU2S.W4I \ Modules \ NuGet \ profile.ps1: 126 char: 5 + $ service = [Microsoft.VisualStudio.Shell.Package] :: GetGlobalServi ... + ~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ + CategoryInfo: InvalidArgument: (:) [], RuntimeException + FullyQualifiedErrorId: AmbiguousTypeReference
The type name "NuGet.VisualStudio.IVsPackageInstallerServices" is ambiguous, it can be "NuGet.VisualStudio.IVsPackageInstallerServices, Microsoft.VisualStudio.ApplicationInsights, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7er11fivel11f11f11af11f11f11f11f11f11f11f11f11f11f11f11f1fvf.pdf.inf? .VisualStudio.Web.Application, Version = 14.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a '. In D: \ xxx \ packages \ EntityFramework.6.1.3 \ tools \ EntityFramework.psm1: 1004 char: 5 + $ packageInstallerServices = $ componentModel.GetService ([NuGet.Vis ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ + CategoryInfo: InvalidArgument: (:) [], RuntimeException + FullyQualifiedErrorId: AmbiguousTypeReference
You cannot call a method with a null value. In D: \ xxx \ packages \ EntityFramework.6.1.3 \ tools \ EntityFramework.psm1: 1006 char: 5 + $ vsPackage = $ packageInstallerServices.GetInstalledPackages () |? ... + ~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ + CategoryInfo: InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId: InvokeMethodOnNull
Join-Path: It is not possible to associate an argument with the Path parameter because it is zero. In D: \ xxx \ packages \ EntityFramework.6.1.3 \ tools \ EntityFramework.psm1: 713 char: 28 + $ toolsPath = Join-Path $ installPath tools + ~~~~~~~~~~~~ + CategoryInfo: InvalidData: (:) [Join-Path], ParameterBindingValidationException + FullyQualifiedErrorId: ParameterArgumentValidationErrorNullNotAllowed, Microsoft.PowerShell.Commands.JoinPathCommand
Join-Path: It is not possible to associate an argument with the Path parameter because it is zero. In D: \ xxx \ packages \ EntityFramework.6.1.3 \ tools \ EntityFramework.psm1: 780 char: 74 + ... [System.Reflection.Assembly] :: LoadFrom ((Join-Path $ ToolsPath EntityF ... + ~~~~~~~~~~ + CategoryInfo: InvalidData: (:) [Join-Path], ParameterBindingValidationException + FullyQualifiedErrorId: ParameterArgumentValidationErrorNullNotAllowed, Microsoft.PowerShell.Commands.JoinPathCommand
You cannot call a method with a null value. In D: \ xxx \ packages \ EntityFramework.6.1.3 \ tools \ EntityFramework.psm1: 781 char: 5 + $ dispatcher = $ utilityAssembly.CreateInstance (+ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CategoryInfo: InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId: InvokeMethodOnNull
Join-Path: It is not possible to associate an argument with the Path parameter because it is zero. In D: \ xxx \ packages \ EntityFramework.6.1.3 \ tools \ EntityFramework.psm1: 810 char: 20 + (Join-Path $ runner.ToolsPath EntityFramework.PowerShell.dll), + ~~~~~~~~~ ~~~~~~~~ + CategoryInfo: InvalidData: (:) [Join-Path], ParameterBindingValidationException + FullyQualifiedErrorId: ParameterArgumentValidationErrorNullNotAllowed, Microsoft.PowerShell.Commands.JoinPathCommand