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# C# Objects Inheritance Throwing Exceptions

Mikey Ro
Mikey Ro
6,948 Points

Compiler Error

I cant seem to find a solution for this error - I have double checked my code and even run the instructors code and always receive this error. Help is appreciated. treehouse:~/workspace$ mcs -out:TreehouseDefence.exe *.cs && mono TreehouseDefence.exe
MapLocation.cs(3,23): error CS0246: The type or namespace name Point' could not be found. Are you missingTre ehouseDefense' using directive?
MapLocation.cs(5,38): error CS0246: The type or namespace name Map' could not be found. Are you missingTreeh ouseDefense' using directive?
Compilation failed: 2 error(s), 0 warnings

Steven Parker
Steven Parker
229,732 Points

To enable a complete and accurate analysis, make a snapshot of your workspace and post the link to it here.

4 Answers

Steven Parker
Steven Parker
229,732 Points

According to the "Watch Video" button in the upper right, this is the "Throwing Exceptions" lesson of the "C# Objects" course.

Daniel Tkach
Daniel Tkach
7,608 Points

You are always there Steven, impressive. That's why I'm staying here and I cancelled Pluralsight for now...

Steven Parker
Steven Parker
229,732 Points

That's really nice of you to say, but I should probably point out that I have no association with Treehouse other than being a student.

I do enjoy being helpful, but I'm not a teacher, staff member or even a forum moderator.

Daniel Tkach
Daniel Tkach
7,608 Points

Wow really. Did you take each single course here? And are you teaching any courses either here or somewhere else?

Steven Parker
Steven Parker
229,732 Points

What I said above is that I'm not a teacher.

I'm a web developer. And I have not taken every Treehouse course, but as you can see from my profile, I have taken several. And I continue to take more as I have time. I find the Treehouse courses a valuable resource both for learning new skills and for refreshing existing ones.

Daniel Tkach
Daniel Tkach
7,608 Points

Thank you for sharing Steven. Keep it up, you are good inspiration (much needed).