Can't use route with constraints in JsAction

Aug 19, 2014 at 10:58 AM
Edited Aug 19, 2014 at 10:59 AM
Hi
I have some problems with JsAction, when I try to use it with route and constraints

Action:
        [JsAction]
        [HttpGet]
        public ActionResult GetNewsItem(long newsId)
        {
            if (Request.IsAjaxRequest())
            {
                ...
                return Json(result, JsonRequestBehavior.AllowGet);
            }
            return View("Home");
        }
with this route:
routes.MapRoute(
                null,
                "News/{newsId}",
                new { controller = "News", action = "GetNewsItem" },
                new { newsId = @"\d+"}
                );
And JsAction says that he couldn't load resource, because there is internal server error.
http://snag.gy/NZn0C.jpg

Is it my mistake or something else?
Coordinator
Aug 24, 2014 at 2:37 PM
Thank you for writing,
I am sorry but the project is not supported anymore and I have tools to reproduce the issue neither. Sorry for that.
You may want to download the source code and check it by yourself.