1
Answer

The name 'ViewBag' does not exist in the current context

mathan kumar

mathan kumar

7y
549
1
Problem:
 

The name 'ViewBag' does not exist in the current context

 
Solution:-
 
You might be missing the ./Views/Web.config file, because you created the project from an empty ASP.NET application instead of using an ASP.NET MVC template. 
 
 

Answers (1)