Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C#

Rhett Turner
Rhett Turner
13,797 Points

"The name 'ViewBag' does not exist within this context." ASP.NET MVC and Razor

Hello, I have been struggling with figuring out this error. My ViewBag seems to be undefined. I have downloaded and directly opened the teacher's notes version of this project, and the error still shows. I am using Visual Studio Community Version for Mac.

Thanks!

Mark Wilkowske
Mark Wilkowske
Courses Plus Student 18,131 Points

Is this the Using Strongly Typed Views challenge? Probably the one I had issues with too.