I get this error "A route with the name" MemberRoute "was not found in the route collection. Parameter name: name". Here is my Global.asax,
public class MvcApplication : System.Web.HttpApplication { public static void RegisterRoutes(RouteCollection routes) { routes.MapRoute( "MemberRoute",
MemberController
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();
Caller
return RedirectToRoute("MemberRoute", new { userId = user.UserId, pseudoName = user.PseudoName });
Why is the route name not found?
Shane LeBlanc
source share