asp.net mvc - MVC routing - why does my request not match the route? -


I am making a request that I thought would be caught by my route, but there is no match.

-

URL:

  Event Reception / ComingAdmin / 386 / 01e71c45-cb67-4711-a51f-df5fcb54bb8b  

Expected Match:

  routes.MapRoute ("Edit Event Response to Another User", // Root Name "Event Reception / {Action} / {EventID} / {UserID} ", Parameter new with URL {admin =" Event Response ", action =" ComingAdam "} / / parameter default);  

The desired controller (but I do not think it comes into play):

  public class EventResponseController: controllerbase {(...) public performance ComingAdmin (Int EventID, Gide UserID) {Return Register Event Response (EventID, Attendstats.com, UserID); Your userId is not in the middle of a crisp brace  
  

  routes.MapRoute ("Edit Event Response to Another User", // Root Name "EventResponse / {action} / {eventId} / {userId}", // with new URL parameter { Controller = "EventResponse", action = "ComingAdmin"} / / parameter defaults);  

And your URL mentions Event Recipe instead of EventRe s , so it should be:

  EventResponse / ComingAdmin / 386 / 01e71c45 -cb67-4711-a51f-df5fcb54bb8b  

This is in all details: -)


Comments