Error in pageAlias Path (Server Error), please help me to solve this thing

Mahander Kelash asked on March 19, 2019 22:04

Server Error in '/Kentico12_4_TestECA' Application.

The constraint entry 'nodeAlias' on the route with route template '{culture}/LandingPage/{nodeAlias}' must have a string value or be of a type which implements 'System.Web.Routing.IRouteConstraint'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The constraint entry 'nodeAlias' on the route with route template '{culture}/LandingPage/{nodeAlias}' must have a string value or be of a type which implements 'System.Web.Routing.IRouteConstraint'.

Recent Answers


Michal Samuhel answered on March 20, 2019 08:33

I have heard of similar issue and it was caused by referencing different namespace, which is quite similar in its name. Instead of using System.Web.Mvc.Routing.Constraints; they brought in using System.Web.Http.Routing.Constraints namespace in the RouteConfig class. Could you check whether this is the same case?

2 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.