title: ASP.NET MVC 4: One controller routing is not like the others
body: <p>I have added a new controller, "LoggingController" to an MVC 4 application that already has several controllers.
  Now I noticed that the routing behaviour for this controller is different from those that already existed.</p>
  
  <p>For example, the following two urls work properly, as expected, and hit the "Index" method in BlogController.</p>
  
  <pre><code>http://localhost:56933/Blog/
  
  http://localhost:56933/Blog/Index
  </code></pre>
  
  <p>So do all other controllers except the one I added:</p>
  
  <p><code>http://localhost:56933/Logging/Index</code> - works properly, hits the "Index" method in LoggingController</p>
  
  <p><code>http://localhost:56933/Logging/</code> - returns "Server Error in '/' Application. The resource cannot be found."</p>
  
  <p>Where should I start looking, beyond the obvious things?</p>
  
  <p>Here is the Index signature from LoggingController</p>
  
  <pre><code>public ActionResult Index(int? page, string Period, string LoggerProviderName, string LogLevel, int? PageSize)
  </code></pre>
  
  <p>There is nothing specific to a certain controller in the MapRoute. Here is the full RouteConfig for reference:</p>
  
  <pre><code>public static void RegisterRoutes(RouteCollection routes)
  {
      routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
      routes.MapHttpRoute(
          name: "DefaultApi",
          routeTemplate: "api/{controller}/{id}",
          defaults: new { id = RouteParameter.Optional }
      );
  
      routes.MapRoute(
      name: "Display",
      url: "Post/{id}/{seofriendly}",
      defaults: new { controller = "Post", action = "Display", id = UrlParameter.Optional, seofriendly = ""}
          );
  
      routes.MapRoute(
          name: "SEOFriendly",
          url: "{controller}/{action}/{id}/{seofriendly}",
          defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional, seofriendly = "" }
      );
  
      routes.MapRoute(
          name: "SEOFriendlyNoId",
          url: "{controller}/{action}/{seofriendly}",
          defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional, seofriendly = "" }
      );
  
      routes.MapRoute(
          name: "Default",
          url: "{controller}/{action}/{id}",
          defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
      );
  }
  </code></pre>