title: System.Web.Mvc.HtmlHelper<dynamic> exception on Html.PagedListPager
body: <p>When im trying to use my aspx file</p>
  
  <pre><code> @using PagedList.Mvc;
   ...
   @Html.PagedListPager(ViewBag.test, page =&gt; Url.Action("Test", new { page })).
  </code></pre>
  
  <p>I'll get this error message </p>
  
  <pre><code>'System.Web.Mvc.HtmlHelper&lt;dynamic&gt;' has no applicable method named 'PagedListPager' but appears to have an extension method by that name. Extension methods cannot be dynamically dispatched. Consider casting the dynamic arguments or calling the extension method without the extension method syntax.
  </code></pre>
  
  <p>My .cs file the code look like this</p>
  
  <pre><code>    using PagedList;
      private List&lt;Quality&gt; Qualitys()
      {
          List&lt;Quality&gt; Qualitys = new List&lt;Quality&gt;()
          {
              new Quality(){ID=1,Name="All Qualitys"},
              new Quality(){ID=2,Name="1"},
              new Quality(){ID=3,Name="2"},
              new Quality(){ID=4,Name="3"},
              new Quality(){ID=5,Name="4"},
              new Quality(){ID=6,Name="5"}
          };
  
          return Qualitys;
      }
  
      public ActionResult Test(int? page)
      {
          int pageSize = 3;
          int pageNumber = page ?? 1;
  
          ViewBag.test = Qualitys().ToPagedList(pageNumber, pageSize);
          return View();
      }
  </code></pre>
  
  <p>In my ~Views/Web.config file I'll have there.</p>
  
  <pre><code>  &lt;namespaces&gt;
      &lt;add namespace="System.Web.Mvc" /&gt;
      &lt;add namespace="System.Web.Mvc.Ajax" /&gt;
      &lt;add namespace="System.Web.Mvc.Html" /&gt;
      &lt;add namespace="System.Web.Optimization"/&gt;
      &lt;add namespace="System.Web.Routing" /&gt;
      &lt;add namespace="Web" /&gt;
    &lt;/namespaces&gt;
  </code></pre>
  
  <p>I cant see why Im getting this error, please help.</p>