Install-Package : Unable to find package 'WebActivator'
Asked Answered
S

5

33

I have Visual Studio 2012 Express for Web. My Steps -Create a New ASP .NET MVC 4 application -choose basic template -go to Package Manager Console -try to install WebActivator

PM> Install-Package WebActivator

and i get the following error enter image description here

How i can resolve this and install WebActivator package?

Songster answered 5/8, 2013 at 13:32 Comment(0)
S
26

So easy

https://www.nuget.org/packages/WebActivator

Need point version of webActivator!!!

PM> Install-Package WebActivator -Version 1.5.3 
Songster answered 5/8, 2013 at 13:38 Comment(1)
or PM> Install-Package WebActivatorExSongster
M
77

In my case, I could not install any package and got a similar error. The issue was solved as I unchecked the "Microsoft and .NET" under "Machine-wide package source":

enter image description here

I hope this can be help someone.

Macaroon answered 21/3, 2014 at 9:47 Comment(3)
Thanks! This was very helpful. I wish I understood the mechanics of why this caused a problem.Hessian
I had to uncheck a second source under "Available package sources". It resolved and installed when nuget.org was the only source checked.Necroscopy
I had other different entries in this list, I had to uncheck all of them to make it work. I didn't try to install webactivator but Aws Dynamodb.Fork
S
26

So easy

https://www.nuget.org/packages/WebActivator

Need point version of webActivator!!!

PM> Install-Package WebActivator -Version 1.5.3 
Songster answered 5/8, 2013 at 13:38 Comment(1)
or PM> Install-Package WebActivatorExSongster
E
16

I got a similar problem with another package in Visual Studio 2013, I cleared the NuGet package cache with the option "Clear Package Cache" and it works now.

enter image description here

Eudora answered 25/8, 2015 at 17:12 Comment(0)
A
2

Change source according to visual studio version

NuGet feed v3 (VS 2015 / NuGet v3.x): https://api.nuget.org/v3/index.json
NuGet feed v2 (VS 2013 and earlier / NuGet 2.x): https://www.nuget.org/api/v2

enter image description here

Apicella answered 26/12, 2016 at 9:2 Comment(0)
W
1

I just ran into this myself. The reference to WebActivatorEx didn't work. You'll have to do it manually. The file is in the packages directory.

Waylay answered 2/11, 2013 at 14:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.