title: Area routing in ASP.NET MVC
body: <p>I am a bit confused with the area routing. I created an area called Backbone. I have my default controller, views and models as well.</p>
  
  <pre><code>http://localhost:46870/ 
  </code></pre>
  
  <p>gives me the following error :</p>
  
  <pre><code>Multiple types were found that match the controller named 'home'. This can happen if     
  the route that services this request ('{controller}/{action}/{id}') does not specify   
  namespaces to search for a controller that matches the request. If this is the case,  
  register this route by calling an overload of the 'MapRoute' method that takes a 
  'namespaces' parameter.
  
  The request for 'home' has found the following matching controllers:
  LearnJavascript.Areas.BackBone.Controllers.HomeController
  LearnJavascript.Controllers.HomeController
  </code></pre>
  
  <p>Here is backbone route(This came with scaffolding, I did not make any changes):</p>
  
  <pre><code>    public override void RegisterArea(AreaRegistrationContext context) 
      {
          context.MapRoute(
              "BackBone_default",
              "BackBone/{controller}/{action}/{id}",
              new { action = "Index", id = UrlParameter.Optional }
          );
      }
  </code></pre>
  
  <p>Default route (This came with scaffolding, I did not make any changes):</p>
  
  <pre><code>    public static void RegisterRoutes(RouteCollection routes)
      {
          routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
          routes.MapRoute(
              name: "Default",
              url: "{controller}/{action}/{id}",
              defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
          );
      }
  </code></pre>
  
  <p>I was thinking that unless the url starts with </p>
  
  <pre><code>http://localhost:46870/Backbone
  </code></pre>
  
  <p>the backbone area home will not be called. So, why is routing confused on this.</p>
  
  <p>Most confusing part was when I called this url : </p>
  
  <pre><code>http://localhost:46870/home/index
  </code></pre>
  
  <p>It shows me the same error message. Why is MVC routing so much confused on this.</p>
  
  <p>Iam using VS2013 and MVC5.</p>