Server Error in '/' Application.

The best overloaded method match for 'ASP._Page_Views_MacroPartials_Configuracao_NTS_OG_Facebook_cshtml.RenderTituloPagina(Umbraco.Web.Models.DynamicPublishedContent)' has some invalid arguments

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: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The best overloaded method match for 'ASP._Page_Views_MacroPartials_Configuracao_NTS_OG_Facebook_cshtml.RenderTituloPagina(Umbraco.Web.Models.DynamicPublishedContent)' has some invalid arguments

Source Error:


Line 10:         dynamic v = Umbraco.Content(Request.QueryString["id"].ToString());
Line 11:         url = Umbraco.NiceUrlWithDomain(CurrentPage.Id) + "?id=" + v.Id;
Line 12:         title = RenderTituloPagina(v);
Line 13:         description = RenderDescricaoPagina(v);
Line 14:         imgurl = RenderPageImagem(v);

Source File: c:\Paginas\CASASERTA\Views\MacroPartials\Configuracao\NTS_OG_Facebook.cshtml    Line: 12

Stack Trace:


[RuntimeBinderException: The best overloaded method match for 'ASP._Page_Views_MacroPartials_Configuracao_NTS_OG_Facebook_cshtml.RenderTituloPagina(Umbraco.Web.Models.DynamicPublishedContent)' has some invalid arguments]
   CallSite.Target(Closure , CallSite , _Page_Views_MacroPartials_Configuracao_NTS_OG_Facebook_cshtml , Object ) +208
   System.Dynamic.UpdateDelegates.UpdateAndExecute2(CallSite site, T0 arg0, T1 arg1) +631
   ASP._Page_Views_MacroPartials_Configuracao_NTS_OG_Facebook_cshtml.Execute() in c:\Paginas\CASASERTA\Views\MacroPartials\Configuracao\NTS_OG_Facebook.cshtml:12
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +148
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +122
   Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) +194
   Umbraco.Web.Mvc.ControllerExtensions.RenderViewResultAsString(ControllerBase controller, ViewResultBase viewResult) +266
   Umbraco.Web.Macros.PartialViewMacroEngine.Execute(MacroModel macro, IPublishedContent content) +849
   umbraco.macro.LoadPartialViewMacro(MacroModel macro) +78
   umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId) +2889
   umbraco.presentation.templateControls.Macro.CreateChildControls() +2329
   System.Web.UI.Control.EnsureChildControls() +106
   umbraco.presentation.templateControls.Macro.OnInit(EventArgs e) +44
   System.Web.UI.Control.InitRecursive(Control namingContainer) +166
   System.Web.UI.Control.InitRecursive(Control namingContainer) +370
   System.Web.UI.Control.InitRecursive(Control namingContainer) +370
   System.Web.UI.Control.InitRecursive(Control namingContainer) +370
   System.Web.UI.Control.InitRecursive(Control namingContainer) +370
   System.Web.UI.Control.InitRecursive(Control namingContainer) +370
   System.Web.UI.Control.InitRecursive(Control namingContainer) +370
   System.Web.UI.Control.InitRecursive(Control namingContainer) +370
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1598


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