{"action":"closed","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/3605","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/3605/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/3605/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/3605/events","html_url":"https://github.com/aspnet/Mvc/issues/3605","id":118208869,"number":3605,"title":"errors with constraints","user":{"login":"lucamorelli","id":127777,"avatar_url":"https://avatars.githubusercontent.com/u/127777?v=3","gravatar_id":"","url":"https://api.github.com/users/lucamorelli","html_url":"https://github.com/lucamorelli","followers_url":"https://api.github.com/users/lucamorelli/followers","following_url":"https://api.github.com/users/lucamorelli/following{/other_user}","gists_url":"https://api.github.com/users/lucamorelli/gists{/gist_id}","starred_url":"https://api.github.com/users/lucamorelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucamorelli/subscriptions","organizations_url":"https://api.github.com/users/lucamorelli/orgs","repos_url":"https://api.github.com/users/lucamorelli/repos","events_url":"https://api.github.com/users/lucamorelli/events{/privacy}","received_events_url":"https://api.github.com/users/lucamorelli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-21T17:15:56Z","updated_at":"2015-11-21T17:56:17Z","closed_at":"2015-11-21T17:56:17Z","body":"Hi, \r\n  I have a small test application that started to give me problems after the upgrade.\r\n  I moved ef context and mvc api controller in a separated library, and adding the library to the app project worked well.\r\n  this is the configuration of the api call via attributes:\r\n\r\n```\r\n        [Route(\"[action]\")]\r\n        [HttpGet(\"{last:number}\")]\r\n        public IEnumerable<Attivita> GetLatest(int last) \r\n```\r\n\r\nnow when called from the application I see this error in the debug console\r\n\r\n```\r\nSystem.InvalidOperationException: The constraint entry 'last' - 'number' on the route 'api/Attivita/{last:number}' could not be resolved by the constraint resolver of type 'DefaultInlineConstraintResolver'.\r\n   in Microsoft.AspNet.Routing.RouteConstraintBuilder.AddResolvedConstraint(String key, String constraintText)\r\n   in Microsoft.AspNet.Mvc.Routing.AttributeRoute.GetRouteInfo(IInlineConstraintResolver constraintResolver, Dictionary`2 templateCache, ActionDescriptor action)\r\n   in Microsoft.AspNet.Mvc.Routing.AttributeRoute.GetRouteInfos(IInlineConstraintResolver constraintResolver, IReadOnlyList`1 actions)\r\n   in Microsoft.AspNet.Mvc.Routing.AttributeRoute.BuildRoute(ActionDescriptorsCollection actions)\r\n   in Microsoft.AspNet.Mvc.Routing.AttributeRoute.GetInnerRoute()\r\n   in Microsoft.AspNet.Mvc.Routing.AttributeRoute.RouteAsync(RouteContext context)\r\n   in Microsoft.AspNet.Routing.RouteCollection.<RouteAsync>d__9.MoveNext()\r\n```\r\n\r\nAm I missing something?"}}