I am having a similar problem to InvalidOperationException: No route in the route table matches the supplied values
That is, I am getting the error:
No route in the route table matches the supplied values
On a Content Delivery Server because I have disabled Sitecore.Speak.Mvc.config (I have confirmed, if I enable this config, my code works).
My problem is this. The code that is failing is using:
@Html.Sitecore().Controller(GlobalControllers.Page.Name, GlobalControllers.Page.Actions.HeadHTML)
The above SO thread suggests manually adding the route, as in:
RouteTable.Routes.MapRoute(
"Bogus-Required-Route",
"bogus-required-route/{controller}/{action}",
);
But I'm not actually calling a route. I'm just feeding the controller name and action, so I would need to add just the basic route:
RouteTable.Routes.MapRoute(
{controller}/{action}",
);
But doesn't that route already exist? If I add if for CDs, won't it blow up on the CM where I have the config enabled? What's the downside to just enabling this config on the CD?