1
Reply

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

mathan kumar

mathan kumar

Apr 13 2017 10:16 AM
517
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)