title: Missing assembly or reference for htmlhelpers
body: <p>I'm having a problem that VS (2015) complains about some things i my .cshtml views.</p>
  
  <blockquote>
    <p>"The name 'model' does not exist in the current context"</p>
  </blockquote>
  
  <pre><code>@model Project.MyModel
  </code></pre>
  
  <blockquote>
    <p>'HtmlHelper' doesn not contain a definition for a 'TextBoxFor' and no extension method 'TextBoxFor' accepting a first argument of type 'HtmlHelper' could be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <pre><code> @Html.TextBoxFor(x =&gt; Model.Property)
  </code></pre>
  
  <p>I can't figure out why it's like this.</p>
  
  <p>My Views/Web.config</p>
  
  <pre><code>&lt;system.web.webPages.razor&gt;
  &lt;host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
  &lt;pages pageBaseType="System.Web.Mvc.WebViewPage"&gt;
    &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;/namespaces&gt;
  &lt;/pages&gt;
  &lt;/system.web.webPages.razor&gt;
  </code></pre>
  
  <p>My Web.config</p>
  
  <pre><code>pages&gt;
    &lt;namespaces&gt;
      &lt;add namespace="System.Web.Helpers"/&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="System.Web.WebPages"/&gt;
    &lt;/namespaces&gt;
  &lt;/pages&gt;
  </code></pre>
  
  <p>Can anyone see what I'm missing here?</p>
  
  <p>EDIT: It works fine in VS 2013..</p>