title: asp.net-mvc's ROUTE: The resource cannot be found
body: <p>I'm using asp.net mvc, but can't access my page, got <strong>404</strong> error.</p>
  
  <p>page's url :</p>
  
  <p><strong>localhost:2334/RawData/EiphoneNews</strong></p>
  
  <p>view file's location:</p>
  
  <p><strong>webroot/View/RawData/TNews/Index.cshtml</strong></p>
  
  <p>my route:</p>
  
  <pre><code>    public static void RegisterGlobalFilters(GlobalFilterCollection filters)
      {
          filters.Add(new HandleErrorAttribute());
      }
  
      public static void RegisterRoutes(RouteCollection routes)
      {
          routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
          routes.MapRoute(
              "Default", // Route name
              "{controller}/{action}/{id}", // URL with parameters
              new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
          );
  
          routes.MapRoute(
             "RawData", // Route name
             "RawData/{controller}/{action}/{id}", // URL with parameters
             new { controller = "EiphoneNews", action = "Index", id = UrlParameter.Optional }, // Parameter defaults
             new string[] { "News.Controllers.RawData" }
         );
      }
  
  
  
  
      protected void Application_Start()
      {
          AreaRegistration.RegisterAllAreas();
  
          RegisterGlobalFilters(GlobalFilters.Filters);
          RegisterRoutes(RouteTable.Routes);
      }
  </code></pre>
  
  <p>my controller:</p>
  
  <pre><code>namespace News.Controllers.RawData
  {
      public class EiphoneNewsController : AuthorizedController
      {
          //
          // GET: /EiphoneNews/
          public ActionResult Index(int pagenum = 0, int pagesize = 20, string queryString = null)
          {...}
      }
  }
  </code></pre>