title: Controller namespace not routing correctly
body: <p>So I am using MVC 5, and is getting this error. This is because I have two areas and they both have a controller with the same name and same method name.</p>
  <pre><code>Multiple types were found that match the controller named 'controller1'. 
  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.
  </code></pre>
  <p>So I understand that I need to add name spaces to my routing. So in <code>Route.config.cs</code> I added this</p>
  <pre><code> routes.MapRoute(
     name: &quot;Default&quot;,
     url: &quot;{controller}/{action}/{id}&quot;,
     defaults: new { controller = &quot;Home&quot;, action = &quot;Index&quot;, id = UrlParameter.Optional },
     namespaces: new[] { &quot;webApp.Controllers&quot; }
   );
             
  </code></pre>
  <p>Then in the <code>application_start()</code> function in <code>global.asax</code> I added <code>ControllerBuilder.Current.DefaultNamespaces.Add(&quot;webApp.Controllers&quot;);</code></p>
  <p>Then in my areas, where my error is coming from. I have 2 areas, admin and myportal. Both have a AreaRegistration.cs file. In AdminAreaRegistration.cs I have this added</p>
  <pre><code>public override void RegisterArea(AreaRegistrationContext context)
      {
          context.MapRoute(
              &quot;Admin_default&quot;,
              &quot;Admin/{controller}/{action}/{id}&quot;,
             defaults: new { action = &quot;Index&quot;, id = UrlParameter.Optional },
             new[] { &quot;webApp.Areas.Admin.Controllers&quot; }
          );
      }
  </code></pre>
  <p>In MyPortalAreaRegistration.cs I have this added</p>
  <pre><code> public override void RegisterArea(AreaRegistrationContext context)
      {
          context.MapRoute(
              &quot;MyPortal_default&quot;,
              &quot;MyPortal/{controller}/{action}/{id}&quot;,
              new { action = &quot;Index&quot;, id = UrlParameter.Optional },
              new[] { &quot;webApp.Areas.MyPortal.Controllers&quot; }
          );
      }
  </code></pre>
  <p>From the client side I am making a post call</p>
  <pre><code> const otherParams = {
          headers: {
              &quot;content-type&quot;: &quot;application/json; charset=UTF-8&quot;
          },
          body: JSON.stringify(product),
          method: 'POST'
      };
      console.log(otherParams);
      const response = await fetch('/Item/GetDetailPageURL', otherParams)
          .then(response =&gt; {
              response.json();
              console.log(response);
              window.open(response.url, &quot;_blank&quot;);
          })
          .then(data =&gt; console.log(data));
  </code></pre>
  <p>From what I understand this is all I needed to get it work, but it is still complaining about the namespace. Am I misunderstanding/ missing something?</p>