title: Extension method call not working in MVC
body: <p>I've created an extension method to render a plain HTML link via MVC as in <a href="https://stackoverflow.com/questions/14474535/how-to-create-anchor-href-using-html-helper?lq=1">this question</a>:</p>
  
  <pre><code>namespace MyProj
  {
      public static class HtmlHelpers
      {
          public static string SectionLink(this HtmlHelper html, string URL, string display)
          {
              return String.Format("&lt;a href=\"{0}\"&gt;{1}&lt;/a&gt;", URL, display);
          }
      }
  }
  </code></pre>
  
  <p>I've added references in the <code>web.config</code> and the <code>views/web.config</code> can reference it in the page and it Visual Studio doesn't give any errors:</p>
  
  <pre><code>&lt;h1 class="site-title"&gt;@HtmlHelpers.SectionLink("https://stackoverflow.com/", "Home")&lt;/h1&gt;
  </code></pre>
  
  <p>Once I run the project I get an error:</p>
  
  <pre><code>Compiler Error Message: CS1501: No overload for method 'SectionLink' takes 2 arguments
  </code></pre>
  
  <p>I'm stuck on this bit. Visual Studio is happy with the reference but doesn't seem to recognise it's an extension method judging by the error message. What am I doing wrong?</p>