title: ASP.NET MVC in a virtual directory
body: <p>I have the following in my Global.asax.cs</p>
  
  <pre><code>routes.MapRoute(
      "Arrival",
      "{partnerID}",
      new { controller = "Search", action = "Index", partnerID="1000" }
  );
  
  routes.MapRoute(
      "Default",
      "{controller}/{action}/{id}",
      new { controller = "Home", action = "Index", id = "" }
  );
  </code></pre>
  
  <p>My SearchController looks like this</p>
  
  <pre><code>public class SearchController : Controller
  {
      // Display search results
      public ActionResult Index(int partnerID)
      {
          ViewData["partnerID"] = partnerID;
          return View();
      }
  }
  </code></pre>
  
  <p>and Index.aspx simply shows ViewData["partnerID"] at the moment.</p>
  
  <p>I have a virtual directory set up in IIS on Windows XP called Test.</p>
  
  <p>If I point my browser at <a href="http://localhost/Test/" rel="noreferrer">http://localhost/Test/</a> then I get 1000 displayed as expected. However, if I try <a href="http://localhost/Test/1000" rel="noreferrer">http://localhost/Test/1000</a> I get a page not found error. Any ideas?</p>
  
  <p>Are there any special considerations for running MVC in a virtual directory?</p>