System.Web.Mvc.Routing.Constraints namespace not found [Resolved]

Posted by Sheonarayan under ASP.NET MVC on 12/13/2014 | Points: 10 | Views : 1389 | Status : [Administrator] | Replies : 1
I was trying to use RangeRouteConstraint in ASP.NET MVC Routing and RangeRouteConstraint need a namespace System.Web.Mvc.Routing.Constraints but I couldn't find which .dll this contains.

I tried using System.Web.Mvc but not luck.

Any help?

Regards,
Sheo Narayan
http://www.dotnetfunda.com



Responses

Posted by: Sheonarayan on: 12/13/2014 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down

Resolved
Found the solution. We need to delete the existing asp.net mvc 4 reference of System.Web.Mvc.dll and add ASP.NET MVC 5 version of System.Web.Mvc.dll and the some dependency .dlls like System.Web.WebPages etc.

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Sheonarayan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response