I found this error wavy sign under Viewbag. We know ViewBag object solve in runtime so this sign is not major issue in compile time but I feel bad to see any red sign under my code.
How to remove:
After googling I found a solution that adding following line to Application_Start method at global.asax page solve that issue:
ViewEngines.Engines.Add(new RazorViewEngine()); // just add this line.
How to remove:
After googling I found a solution that adding following line to Application_Start method at global.asax page solve that issue:
ViewEngines.Engines.Add(new RazorViewEngine()); // just add this line.
No comments:
Post a Comment