title: How to define razor helper for C# MVC project so that namespace is found?
body: <p>MVC4, Entity Framework 5, ASP.Net 4. I am trying to make a razor helper to use across multiple Areas. This has been asked a few times, but after implementing all the solutions on Google, the problem persists. </p>
  
  <p>The intellisense is recognizing the helper, but on the live server I cannot escape the compile error "The type or namespace name 'MyHelpers' could not be found (are you missing a using directive or an assembly reference?)".</p>
  
  <p>Here is what I have done:</p>
  
  <ul>
  <li>Defined @helper class in /App_Code </li>
  <li>Defined @helper class in /Views/Helpers </li>
  <li>Added reference to MyHelper namespace in<br>
  &lt;system.web.webPages.razor&gt; of Views/web.config </li>
  <li>Added reference to MyHelper namespace in
  &amp;ltsystem.web.webPages.razor&gt; of MyArea/Views/web.config</li>
  <li>Added all recommended using directives to top of Helper definition
  
  <ul>
  <li>@using System.Web.Mvc;</li>
  <li>@using System.Web.Mvc.Html;</li>
  <li>@using System.Web.Mvc.Razor;</li>
  <li>@using System.Text.RegularExpressions</li>
  </ul></li>
  </ul>
  
  <p>After every step, clean, build, restart visual studio, and re-published. But the helper namespace is still not recognized in the Razor compiler.</p>
  
  <p>Does anyone have any ideas?</p>