Server Error in '/' Application.

The call is ambiguous between the following methods or properties: 'Umbraco.Web.UmbracoHelper.Media(params int[])' and 'Umbraco.Web.UmbracoHelper.Media(params string[])'

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 call is ambiguous between the following methods or properties: 'Umbraco.Web.UmbracoHelper.Media(params int[])' and 'Umbraco.Web.UmbracoHelper.Media(params string[])'

Source Error:


Line 12: 									else
Line 13: 									{
Line 14: 										var im1 = Umbraco.Media(CurrentPage.AncestorOrSelf(1).image1);
Line 15: 										<img src="@im1.Url" alt="@im1.UrlName" />
Line 16: 									}

Source File: d:\inetpub\wwwroot\Stonhard7\Views\MacroPartials\HomeDiamond.cshtml    Line: 14

Stack Trace:


[RuntimeBinderException: The call is ambiguous between the following methods or properties: 'Umbraco.Web.UmbracoHelper.Media(params int[])' and 'Umbraco.Web.UmbracoHelper.Media(params string[])']
   CallSite.Target(Closure , CallSite , UmbracoHelper , Object ) +208
   System.Dynamic.UpdateDelegates.UpdateAndExecute2(CallSite site, T0 arg0, T1 arg1) +698
   ASP._Page_Views_MacroPartials_HomeDiamond_cshtml.Execute() in d:\inetpub\wwwroot\Stonhard7\Views\MacroPartials\HomeDiamond.cshtml:14
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +147
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +122
   Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) +200
   Umbraco.Web.Mvc.ControllerExtensions.RenderViewResultAsString(ControllerBase controller, ViewResultBase viewResult) +269
   Umbraco.Web.Macros.PartialViewMacroEngine.Execute(MacroModel macro, IPublishedContent content) +965
   umbraco.macro.LoadPartialViewMacro(MacroModel macro) +81
   umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId) +2797
   umbraco.presentation.templateControls.Macro.CreateChildControls() +2366
   System.Web.UI.Control.EnsureChildControls() +107
   umbraco.presentation.templateControls.Macro.OnInit(EventArgs e) +44
   System.Web.UI.Control.InitRecursive(Control namingContainer) +173
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +491


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