Has the issue been fixed? I came across the same problem, and it only got resolved after I updated my Visual Studio. There was an update available, so I went ahead and did that.
CS0103:The name 'ViewBag' does not exist in the current context
shravan dixit
0
Reputation points
CS0103:The name 'ViewBag' does not exist in the current context
same issue showing on every html control like @Html.DropDownListFor(), @Html.ValidationMessageFor etc.
Please resolve the issue.