Skip to content

Error when using Paging using IPagedList in MVC

Punit Sharma

Punit Sharma

Asked Jan 10, 2017, 10:45 PM EST1 answer
Share
LinkedInX
Hi Team,
 
I am getting error when using Paged List dll in MVC 3 reference from
 
 
A screen shot attached, Please suggest me how to resolve this  
 
Thanks,
 
Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1705: Assembly 'PagedList.Mvc, Version=4.5.0.0, Culture=neutral, PublicKeyToken=abbb863e9397c5e1' uses 'System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

Source Error:

 
Code
[No relevant source lines]

Source File: Line: 0


Show Detailed Compiler Output:



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1087.0 

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Punit Sharma
    0
    Hi Team,
     
    It get resolved when I upgrade my MVC 3 to MVC 4 using
     
    Install-Package UpgradeMvc3ToMvc4  
     
    in package manager console.
     
    Thanks, 
    0