title: Is it possible, in MVC3, to have the same controller name in different areas?
body: <p>In MVC3, I have the following areas:</p>
  
  <blockquote>
    <ul>
    <li>Mobile</li>
    <li>Sandbox</li>
    </ul>
  </blockquote>
  
  <p>Then i route maps like this:</p>
  
  <pre><code>    context.MapRoute(
          "Sandbox_default",
          "Sandbox/{controller}/{action}/{id}",
          new { controller = "SandboxHome", action = "Index", id = UrlParameter.Optional }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>    context.MapRoute(
          "Mobile_default",
          "Mobile/{controller}/{action}/{id}",
          new { controller = "MobileHome", action = "Index", id = UrlParameter.Optional }
      );
  </code></pre>
  
  <p>The problem is this gives urls like:</p>
  
  <blockquote>
    <p><a href="http://localhost:58784/Mobile/MobileHome">http://localhost:58784/Mobile/MobileHome</a></p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p><a href="http://localhost:58784/Sandbox/SandboxHome">http://localhost:58784/Sandbox/SandboxHome</a></p>
  </blockquote>
  
  <p>But I want it like this:</p>
  
  <blockquote>
    <p><a href="http://localhost:58784/Mobile/Home">http://localhost:58784/Mobile/Home</a><br />
    <a href="http://localhost:58784/Sandbox/Home">http://localhost:58784/Sandbox/Home</a></p>
  </blockquote>
  
  <p>The problem is when I rename the SandboxHome-Controller to Home, and the MobileHome-Controller to Home, which would give the desired URLs, it won't compile, saying it has two classes for HomeController.</p>
  
  <p>How can I have the same controller name in different areas ?</p>