के लिए काम नहीं कर रहा है मार्ग http://localhost:2222/2012-adidas-spring-classic/37
क्यों रूट मार्ग से उठाया नहीं जाएगा? मुझे 404 त्रुटि मिलती है।रूट प्रतिबंध एएसपी.नेट एमवीसी
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("{*vti_inf}", new { vti_inf = @"(.*/)?_vti_inf.html(/.*)?" });
routes.IgnoreRoute("{*vti_rpc}", new { vti_rpc = @"(.*/)?_vti_rpc(/.*)?" });
#region API
routes.MapRouteLowercase(
"NamedHomeEvent",
"{year}-{name}/{Id}",
new { controller = "Event", action = "Index", year = DateTime.Now.Year },
new { year = @"\d{4}", Id = @"\d+" }
);
public virtual ActionResult Index(int? id, int? year, string name)
{
आप भी उपयोग कर सकते हैं http://getglimpse.com/ डिबग मार्गों के लिए (और बहुत अधिक) (http://getglimpse.com/Help/Plugin/Routes) – robasta