I upgrade my solution from 2013 to 2015 and v4.6 framework. I have only two projects in solution. when I build my solution , it seems to build successfully but when I look at the error list, I am seeing erros on
@model and Html helpers.. etc.
It says The name "model" does not exist in the current context
The name "ViewBag" does not exist in the current context .
My application is MVC 4 version. Please help!


Nigel FernandesRank #753 · 3.1K reputationPosted Jan 17, 2017, 2:15 PM EST
RakeshRank #520 · 4.7K reputationPosted Jan 17, 2017, 3:54 PM EST
Nigel FernandesRank #753 · 3.1K reputationPosted Jan 17, 2017, 4:24 PM EST
RakeshRank #520 · 4.7K reputationPosted Jan 17, 2017, 6:02 PM EST
Nigel FernandesRank #753 · 3.1K reputationPosted Jan 17, 2017, 6:13 PM EST
Bryian TanRank #396 · 6.3K reputationPosted Jan 17, 2017, 6:25 PM EST
Bryian TanRank #396 · 6.3K reputationPosted Jan 17, 2017, 6:48 PM EST
RakeshRank #520 · 4.7K reputationPosted Jan 18, 2017, 11:39 AM EST
Briyan, all my razor views in the solution have red underlines (errors) at @model, viewbag, Http.Partial etc. intelliSense is not working in my views..
Bryian TanRank #396 · 6.3K reputationPosted Jan 23, 2017, 8:00 PM EST
Here what I would recommend. Go to https://github.com/bryiantan/PasswordStrengthIndicator and download one of my sample MVC 5 project. Copy all the MVC assemblies/DLL into your project bin folder, update the project references to the DLL location. Compare the sample web.config with your project web.config and make adjustment accordingly. Don't forget there are 2 web.config, one in Views folder and the other on the Root. If you application has an Area, there should a web.config in that folder too.