When I open my Asp.net 4 Application in Visual Studio 2015 Community Edition, I have this error
Asked
Active
Viewed 904 times
-4
-
Without seeing any source code we have no chance to help you – Stefan Nov 15 '15 at 20:42
-
the build is work , there is no problem with code. – ahmed.jardak Nov 16 '15 at 10:48
-
Show us the source code of the page you are getting the error on. – Jakub Holovsky Nov 16 '15 at 21:07
-
When I open my Asp.net 4 Application in Visual Studio 2013 Community Edition, I Have No Error. – ahmed.jardak Nov 16 '15 at 21:08
-
I have Same Problem as http://stackoverflow.com/questions/29319189/the-name-viewbag-does-not-exist-in-the-current-context-visual-studio-2015?rq=1 – ahmed.jardak Nov 16 '15 at 21:40
1 Answers
0
You Should Upgrade your project from MVC4 to MVC5 http://www.asp.net/mvc/overview/releases/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2

ahmed.jardak
- 1
- 3