title: Missing definitions MVC Views Visual Studio Intellisense
body: <p>I have a Github project which is an ASP.NET MVC website. There's no trouble in pulling and running the project now. However when coding I get all sorts of errors with e.g:</p>
  
  <pre><code>@ViewBag
  @Html.LabelFor
  @Scripts
  </code></pre>
  
  <p>Errors:</p>
  
  <blockquote>
    <p>The name 'Scrips/ViewBag' does not exist in the current context</p>
    
    <p>'System.Web.WebPages.Html.HtmlHelper' does not contain a definition
    for 'LabelFor' and no extension method 'Label'For' accepting a first
    argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found
    (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>I've tried updating Owin in the Nuget console using:</p>
  
  <pre><code>Update-Package owin -reinstall
  </code></pre>
  
  <p>which made it able to run the project</p>
  
  <p><code>web.config</code>:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"&gt;
        &lt;section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /&gt;
        &lt;section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /&gt;
      &lt;/sectionGroup&gt;
    &lt;/configSections&gt;
    &lt;system.web.webPages.razor&gt;
      &lt;host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.2.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;add namespace="HackMySite" /&gt;
        &lt;/namespaces&gt;
      &lt;/pages&gt;
    &lt;/system.web.webPages.razor&gt;
    &lt;appSettings&gt;
      &lt;add key="webpages:Enabled" value="false" /&gt;
    &lt;/appSettings&gt;
    &lt;system.webServer&gt;
      &lt;handlers&gt;
        &lt;remove name="BlockViewHandler"/&gt;
        &lt;add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" /&gt;
      &lt;/handlers&gt;
    &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>My partners who also work on this project are also working in Visual Studio and they seem to have no trouble with this.</p>
  
  <p>Which is exactly the same with another project I would make myself.</p>