Search code examples
c#asp.netasp.net-mvcentity-framework-5

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


Solution

  • 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 http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-29-92/7750.v20SysRefProps.JPG