I am following the MVC tutorial, I installed PagedList package, and I cannot use the PagedList reference in the controller.
The type or namespace name 'PagedList' could not be found (are you missing a using directive or an assembly reference?).
I am following the MVC tutorial, I installed PagedList package, and I cannot use the PagedList reference in the controller.
The type or namespace name 'PagedList' could not be found (are you missing a using directive or an assembly reference?).
First sorry for my terrible English. In my case, I use the MVC5 in Visual Studio Community 2015 and I solved the problem this way:
First I delete the cache of Visual Studio and NuGet cache:
After I use the package manager console to remove PagedList.MVC, then remove PagedList and then re-install them again like so:
I holpe that help
PagedList and PagedList.Mvc are being installed separately.
NuGet console install commands:
Install-Package PagedList
Install-Package PagedList.Mvc
Make sure you've installed both of packages.
Check your references to see if there is a reference to the PagedList assembly.
If there isn't: Try to reinstall the package
If there is a reference: Check if the file actually exists on the location specified.
I use DNN. My problem was the package (DotNetNuke.Core.8.0.1.239) was outdated.
Check in your solution folder if you have the package installed:
..MySolutionFolder\packages\DotNetNuke.Core.8.0.1.239 (your package name)
Right click on Solution, go to Manage Nuget Packages.
Click on Browse, search for DotnetNuke.
Install:
DotNetNuke.Core
DotNetNuke.Web
I had the issue was because I was using another more than one web application and they did not use the same framework version :)