My current development environment:
- Windows 7 Enterprise
- Visual Studio 2015 Enterprise Update 2
- Resharper Ultimate 2016.1.2
Project Configuration:
- C# .Net 4.5
- MVC 5
I have looked through several threads, blogs for example ViewBag does not exist in the current context - Visual studio 2015
But my *.cshtml page shows few errors relevant to Razor
I have
- Cleaned the componentModelCache @
C:\Users\your.name.here\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
- updated the Views\web.config
System.Web.Mvc, Version=5.2.2.0
- and every possible config update available through the forums & blogs
Still no result. But when I create a brand new project this error does not appear. Any clue?
FYI, Error or not the solution builds and runs without any drama.