title: How to solve "The name 'ViewData' does not exist in the current context"
body: <p>When I try and pass data to my view from a controller using ViewData I get the error in the title, when referencing the ViewData property in my view</p>
  
  <p>I am using the Razor View engine, there are several posts around related to this, but they seem to be relevant to web forms implementations</p>
  
  <p>I suspect there is an issue with how Razor is referenced: my config file has a number of warnings:</p>
  
  <p><img src="https://i.stack.imgur.com/nc4hc.png" alt="enter image description here"></p>
  
  <p>Those type references are warning : Invalid Module Qualification: Unable to resolve assembly System.Web.WebPages.Razor</p>
  
  <p>The generic MVC stuff is working ok (using only Model references) but trying to access ViewData - no luck</p>