Open shakucing opened 3 years ago
resolved by restarting vscommunity
reopen.
restarting does not resolve the issue any longer, will try fix the root cause related to the web.config first
Possible solutions:
For second one, you need to check your mvc version, mine is 5.2.7 - You can check > FitnessFrog > Manage NuGet Packages
For third one, you can check inside Views > web.config if namespace "System.Web.Mvc added"
after attempt with version changes, reimport, etc, still not able to resolve.
as this is not a showstopper to development will put as KIV
stackoverflow possible solutions: https://stackoverflow.com/questions/15550899/the-name-viewbag-does-not-exist-in-the-current-context/15553331 https://stackoverflow.com/questions/29319189/the-name-viewbag-does-not-exist-in-the-current-context-visual-studio-2015