Server Error in '/' Application.

No child content named 'ButtonLink' found under content with Id '786916'
Parameter name: contentName

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.ArgumentException: No child content named 'ButtonLink' found under content with Id '786916'
Parameter name: contentName

Source Error:


Line 20:     var cheapestRoom = Html.GetProperty(string.Format("{0}-cheapest-room", @Html.GetProperty("PageGroup").ToHtmlString()));
Line 21: 
Line 22:     var buttonlink = Html.GetDataModel<JsonLinkModel>(Model, "ButtonLink");
Line 23: 
Line 24: }

Source File: D:\Octopus\Applications\live\Carlton\4.73.14\Views\Macros\classic-title-text-btn-more.cshtml    Line: 22

Stack Trace:


[ArgumentException: No child content named 'ButtonLink' found under content with Id '786916'
Parameter name: contentName]
   Pangaea.CMS.Mvc.Helpers.HtmlHelperExtensions.GetDataModel(HtmlHelper helper, Content c, String contentName) +624
   ASP._Page_Views_Macros_classic_title_text_btn_more_cshtml.Execute() in D:\Octopus\Applications\live\Carlton\4.73.14\Views\Macros\classic-title-text-btn-more.cshtml:22
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   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) +136
   Pangaea.CMS.Mvc.Helpers.HtmlHelperExtensions.Render2(HtmlHelper helper, Content c) +237
   Pangaea.CMS.Mvc.Renderers.JsonGridRendererExtensions.ToHtmlString(Col col, HtmlHelper helper, Int32 index) +517
   Pangaea.CMS.Mvc.Renderers.JsonGridRendererExtensions.ToHtmlString(Row row, HtmlHelper helper) +498
   Pangaea.CMS.Mvc.Renderers.JsonGridRendererExtensions.ToHtmlString(Grid grid, HtmlHelper helper) +326
   Pangaea.CMS.Mvc.Renderers.JsonGridRenderer.Render2(HtmlHelper helpers, Content content) +216
   Pangaea.CMS.Mvc.Helpers.HtmlHelperExtensions.Render2(HtmlHelper helper, Content c) +516
   Pangaea.CMS.Mvc.Helpers.HtmlHelperExtensions.Render2(HtmlHelper helper, String contentName) +317
   ASP._Page_Views_Templates_classic_ThreeGridDetail_cshtml.Execute() in D:\Octopus\Applications\live\Carlton\4.73.14\Views\Templates\classic-ThreeGridDetail.cshtml:27
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +148
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +375
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +88
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +775
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +81
   System.Web.Mvc.Async.<>c__DisplayClass3_1.<BeginInvokeAction>b__1(IAsyncResult asyncResult) +188
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c.<BeginExecuteCore>b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState) +26
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +39
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c.<BeginProcessRequest>b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState) +40
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +648
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +213
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +131


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4087.0