I have the following controller method:
public ActionResult GetResults(string viewToReturn, int resultsPerPage, string classification = null, string sessionId = null, int? lastId= null) { ... }
Call the method above using the following URL:
http:
throws an exception thrown with this message:
The public action method "GetResults" was not found on the controller 'MyWebSite.Controllers.HomeController'.
and here is RegisterRoutes:
...... routes.MapRoute("Home", "home/{action}/{*qualifier}", new { controller = "Home", action = "Index", qualifier = UrlParameter.Optional }); ...... routes.MapRoute("SearchTitle", "{*path}", new { controller = "Home", action = "SearchTitle", path = UrlParameter.Optional });
Why am I getting this error and how to fix it? Thank!
c # asp.net-mvc asp.net-mvc-routing controller
Barka May 20 '13 at 20:41 2013-05-20 20:41
source share