title: mvc 2 - 404 error page not found
body: <p>I am getting a 404 error when I start up my mvc 2 project. I followed the guide here: <a href="http://net.tutsplus.com/tutorials/asp-net/asp-net-from-scratch-mvc/" rel="nofollow">http://net.tutsplus.com/tutorials/asp-net/asp-net-from-scratch-mvc/</a></p>
  
  <p>I haven't set up a start page (Which I figured out to be a normal newbie mistake) and I've edited my global.asax class to look like below so it contains the right route. I just can't figure out why it gives me a 404.</p>
  
  <pre><code>public class MvcApplication : System.Web.HttpApplication
      {
          public static void RegisterRoutes(RouteCollection routes)
          {
              routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
              routes.MapRoute(
                  "Default", // Route name
                  "{controller}/{action}/{id}", // URL with parameters
                  new { controller = "CreateUserController", action = "Index", id = UrlParameter.Optional } // Parameter defaults
              );
  
          }
  
          protected void Application_Start()
          {
              AreaRegistration.RegisterAllAreas();
  
              RegisterRoutes(RouteTable.Routes);
          }
      }
  </code></pre>
  
  <p>Here's my CreateUserController:</p>
  
  <pre><code>public class CreateUserController : Controller
      {
          //
          // GET: /CreateUser/
  
          public ActionResult Index()
          {
              return View();
          }
  
          public ActionResult AddLinks()
          {
              return View();
          }
  
      }
  </code></pre>
  
  <p>My Project looks like this:</p>
  
  <ul>
  <li>Controllers
  <ul>
  <li>CreateUserController.cs </li>
  </ul></li>
  <li>Models ((This is empty for now))</li>
  <li>Views
  <ul>
  <li>CreateUser
  <ul>
  <li>Index.aspx</li>
  </ul></li>
  <li>Shared
  <ul>
  <li>Site.Master</li>
  </ul></li>
  </ul></li>
  <li>global.asax</li>
  <li>Web.Config</li>
  </ul>
  
  <p>I am totally new at mvc 2, I've worked with normal web forms for about 2 months now. Let me know if you need the aspx files, but I just need it to find my controller, at this point I just want another error.</p>