CreateRoute issue

Topics: ASP.NET MVC, ASP.NET Web API
Jun 7, 2012 at 5:34 PM

After upgrading to MVC4, trying out example in http://blogs.msdn.com/b/henrikn/archive/2012/05/03/asp-net-web-api-updates-may-3.aspx gives an error saying that No overload for method 'CreateRoute' takes 6 arguments when trying to CreateRoute.

The definition of IHttpRoute doesn't contain "Handler" property. The assembly version for WebApi.Core is 4.0.20505.0

Developer
Jun 7, 2012 at 5:46 PM

Per-route message handlers feature is not available in RC bits. It was added post RC.

Jun 7, 2012 at 7:11 PM
Edited Jun 7, 2012 at 7:12 PM

That was my thinking too. But since the article was written in May I was thinking may be ... Well thanks any way.