title: Can't Find Route Name In Route Collection
body: <p>I am receiving this error "A route named 'MemberRoute' could not be found in the route collection. Parameter name: name". Here is my Global.asax,</p>
  
  <pre><code>public class MvcApplication : System.Web.HttpApplication
  {
      public static void RegisterRoutes(RouteCollection routes)
      {
          routes.MapRoute(
              "MemberRoute",                       // routeName
              "member/{userId}/{pseudoName}", // url
              new
              {                           // url defaults
                  controller = "Member",
                  action = "Index",
                  userId = 0,
                  pseudoName = UrlParameter.Optional
              },
              new
              {                          // url constraints
                  userId = @"\d+" // must match url {userId}
              }
          );
      }
  
      protected void Application_Start()
      {
          AreaRegistration.RegisterAllAreas();
  
          FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
          RouteConfig.RegisterRoutes(RouteTable.Routes);
          BundleConfig.RegisterBundles(BundleTable.Bundles);
      }
  }
  </code></pre>
  
  <p>MemberController,</p>
  
  <pre><code>public ActionResult Index(int userId, string pseudoName)
      {
          User user;
          var unitOfWork = new UnitOfWork();
          user = unitOfWork.UserRepository.GetById(userId);
  
          var expectedName = user.PseudoName.ToSeoUrl();
          var actualName = (pseudoName ?? "").ToLower();
  
          // permanently redirect to the correct URL
          if (expectedName != actualName)
              return RedirectToActionPermanent("Index", "Member", new { id = user.UserId, pseudoName = expectedName });
          return View(user);
      }
  </code></pre>
  
  <p>Caller, </p>
  
  <pre><code>return RedirectToRoute("MemberRoute", new { userId = user.UserId, pseudoName = user.PseudoName });
  </code></pre>
  
  <p>Why is the route name not being found?</p>