I've recently deployed a SC 8.1 update 3 site to production (seperate CM and CD) and on the CD side I'm getting this error:
Server Error in '/' Application.
No route in the route table matches the supplied values.
Description: An unhandled exception occurred.
Exception Details: System.InvalidOperationException: No route in the route table matches the supplied values.
Source Error:
Line 14: <meta charset="utf-8" />
Line 15: <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
Line 16: @Html.Action("Metadata", "Metadata")
Line 17: <meta name="viewport" content="width=device-width" />
Line 18: <!-- END: Meta Data -->
Source File: D:\Apps\Sitecore\Website\Views\Website\Layouts\Default.cshtml Line: 16
Stack Trace:
[InvalidOperationException: No route in the route table matches the supplied values.]
System.Web.Mvc.Html.ChildActionExtensions.ActionHelper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter) +651
System.Web.Mvc.Html.ChildActionExtensions.Action(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues) +114
ASP._Page_Views_Website_Layouts_Default_cshtml.Execute() in D:\Apps\Sitecore\Website\Views\Website\Layouts\Default.cshtml:16
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +253
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +148
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +122
System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +137
Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer) +343
Why isn't the Sitecore MVC routing picking this up? (I'm not using any custom routings btw.)
I haven't come across this in any other environments (dev/test/qa) and I'm currently pulling my hairs out why this is happening. I've spent the last day looking into differences between the environments but I think I'm staring myself blind on this one.