Tomek Tomek - 1 month ago 13
C# Question

PagedList package installed, "missing assembly reference" error in controller

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?).

Answer

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.

Reference example