title: Razor helper not found
body: <p>I'm trying to add a Razor helper, but cannot get the view to recognise it.</p>
  
  <p>I've got the simplest of all helpers...</p>
  
  <pre><code>using System.Web.Mvc.Html;
  
  namespace CharityVouchers.Web.Helpers {
    public static class Razorhelper {
      public static string Jim(this HtmlHelper helper) {
        return "Jim";
      }
    }
  }
  </code></pre>
  
  <p>If I go to my _Layout.cshtml, and add the following at the top...</p>
  
  <pre><code>@using CharityVouchers.Web.Helpers
  </code></pre>
  
  <p>...and then try to use my helper lower down the file, I don't get Intellisense when I hit the period after "Html" and if I enter the method name manually, it's shown in red and I get an error message.</p>
  
  <pre><code>@Html.Jim()
  </code></pre>
  
  <p>The error message is...</p>
  
  <p><em>CS1061: 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'Jim' and no extension method 'Jim' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)</em></p>
  
  <p>I've tried everything I can find, but nothing seems to help. Anyone any ideas what I'm doing wrong?</p>
  
  <p><strong>EDIT</strong> Forgot to mention that I tried adding the namespace to Web.config, both the main one and the one in Views, but it didn't make any difference. As I have the using in the view it shouldn't have made any difference, but it's worth mentioning.</p>