title: ASP.NET MVC3 URL parameters resolving to null
body: <p>For some reason, whenever I try to resolve a URL with arguments in my local installation of ASP.NET MVC3, the arguments basically end up being <code>null</code> in my controller's handling function.</p>
  
  <p>For example, I have</p>
  
  <pre><code>public class HomeController : Controller 
  {
      public ActionResult Foo(string bar)
      {
          ViewBag.Message = bar;
          return View();
      }
  }
  </code></pre>
  
  <p>and try to visit <code>http://localhost/myapp/foo/sometext</code> or <code>http://localhost/myapp/home/foo/sometext</code>, <code>bar</code> basically evaluates to <code>null</code> instead of <code>sometext</code>.</p>
  
  <p>I'm fairly confident that my MVC3 install is working properly, as I've managed to run a separate app with a custom routing rule just a few days back. I'm kind of wary that I might have botched up a config flag somewhere or whatever.</p>
  
  <p>Any ideas on what could be wrong here?</p>