Working on an MVC solution developed by team member that was pulled from Team Foundation Server, and have many error messages in this solution like:
- The name 'viewbag' does not exist in the current context
- The name 'HTML' does not exist in the current context
- The type or namespace 'MVC' name does not exist in the namespace 'System.Web'
- The type or namespace 'ActionResults' could not be found.
- *** and many similar error messages
If I open another solution pulled from TFS, I don't get any of these types of syntax error messages.
Have checked the following to troubleshoot:
--I do have a web.config in my Views folder
--I've done multiple Cleans/Rebuild tries
--I've deleted files from C:\Users****\AppData\Local\Microsoft\VisualStudio\16.0_581ef021\ComponentModelCache
--Root web.config says <dependentAssembly> ... <bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />