Server Error in '/' Application.

The best overloaded method match for 'ASP.rcFunctions.jDate(System.DateTime, int)' 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.rcFunctions.jDate(System.DateTime, int)' has some invalid arguments

Source Error:


Line 89:                commentView=commentView+"</span>";
Line 90:                //commentView=commentView+p.createDateTime.ToString("dd/MM/yyyy-hh:mm:ss");
Line 91:                commentView=commentView+rcFunctions.jDate(p.createDateTime,4);
Line 92: if(p.ContentId==67868 && Request["ip"]=="fata-vcfds123n"){
Line 93: commentView=commentView+"[IP:"+p.IP+"]";

Source File: c:\inetpub\Host\mazandnume.com\www\rcAddons\nmgNews\_addon_nmgNews_Comments_01.cshtml    Line: 91

Stack Trace:


[RuntimeBinderException: The best overloaded method match for 'ASP.rcFunctions.jDate(System.DateTime, int)' has some invalid arguments]
   CallSite.Target(Closure , CallSite , Type , Object , Int32 ) +245
   System.Dynamic.UpdateDelegates.UpdateAndExecute3(CallSite site, T0 arg0, T1 arg1, T2 arg2) +262
   ASP._Page_rcAddons_nmgNews__addon_nmgNews_Comments_01_cshtml.commentViewFunc(Int32 id, Int32 pid) in c:\inetpub\Host\mazandnume.com\www\rcAddons\nmgNews\_addon_nmgNews_Comments_01.cshtml:91
   ASP._Page_rcAddons_nmgNews__addon_nmgNews_Comments_01_cshtml.Execute() in c:\inetpub\Host\mazandnume.com\www\rcAddons\nmgNews\_addon_nmgNews_Comments_01.cshtml:125
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +99
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +185
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +122
   System.Web.WebPages.<>c__DisplayClass7.<RenderPageCore>b__6(TextWriter writer) +327
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +123
   ASP.<>c__DisplayClass4f.<Execute>b__4b() in c:\inetpub\Host\mazandnume.com\www\Default.cshtml:91
   System.Web.WebPages.<>c__DisplayClassb.<RenderSection>b__9(TextWriter tw) +414
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +123
   ASP._Page_rcLayouts__rcFullContent_01_cshtml.Execute() in c:\inetpub\Host\mazandnume.com\www\rcLayouts\_rcFullContent_01.cshtml:104
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +99
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +185
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +122
   System.Web.WebPages.<>c__DisplayClass7.<RenderPageCore>b__6(TextWriter writer) +327
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +123
   System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +88
   System.Web.WebPages.WebPageBase.PopContext() +349
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +142


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