After updated our projects to MVC 5, we had the same issue.
Remove MvcPager reference from all relevant projects. Add Webdiyer.MvcPager Version 3.0.1.1 in NuGet Package Manager.
In the cshtml, we had
@Html.AjaxPager(
Model,
new PagerOptions()
{
PageIndexParameterName = "id",
ShowDisabledPagerItems = false,
AlwaysShowFirstLastPageNumber = true,
ShowPageIndexBox = false,
AutoHide=true,
NumericPagerItemCount = 5,
ShowFirstLast=false,
ShowPrevNext =false
},
new AjaxOptions
{
UpdateTargetId = "majorRow"
})
I changed it to
@Ajax.Pager(
Model,
new PagerOptions()
{
PageIndexParameterName = "id",
ShowDisabledPagerItems = false,
AlwaysShowFirstLastPageNumber = true,
//ShowPageIndexBox = false,
AutoHide = true,
NumericPagerItemCount = 5,
ShowFirstLast = false,
ShowPrevNext = false
}).AjaxOptions(
a => a.SetUpdateTargetId("majorRow")
)
Then it works as before. No error anymore.