Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

C# ASP.NET MVC Basics Controllers Creating a Controller

it says Bummer, But works in Visual studio,the treehouse website took 30 minutes of my time not letting me move forward

this is really annoying ! can it show the answer after 10 times trying !!!!!!!!!?

using System.Web.Mvc;

namespace Treehouse.Controllers
public class VideoGamesController : Controller 
  public string Detail()
      return " Welcome to the Video Game Detail page! " ;

1 Answer

28,538 Points

Challenges are very picky about the contents of strings, if your string does not match the one requested exactly as shown then you will often not be allowed to pass, even if the string is quite similar.

The issue in this case is that you have a space at the beginning and end of your string which does not belong there. If you remove the spaces like this:

return "Welcome to the Video Game Detail page!";

Then your code will work.