Server Error in '/' Application.

Cannot perform runtime binding on a null reference

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: Cannot perform runtime binding on a null reference

Source Error:


Line 216:
Line 217:        // Get record id#
Line 218:        var52Sundays += "  <a href=\"/52Sundays/?id=" + article52Sunday.CPID + "\"> ";
Line 219:
Line 220:        // Display photo for this Missionary for current month/year, + missionary name

Source File: C:\SBCWebsites\InAllThingsPray.2019\App_Code\FiveFishExtensions.cs    Line: 218

Stack Trace:


[RuntimeBinderException: Cannot perform runtime binding on a null reference]
   CallSite.Target(Closure , CallSite , Object ) +148
   FiveFishExtensions.BPExtensions.EasyTag52Sundays(String str) in C:\SBCWebsites\InAllThingsPray.2019\App_Code\FiveFishExtensions.cs:218
   FiveFishExtensions.BPExtensions.ProcessEasyTags(String article) in C:\SBCWebsites\InAllThingsPray.2019\App_Code\FiveFishExtensions.cs:114
   ASP._Page_default_cshtml.Execute() in C:\SBCWebsites\InAllThingsPray.2019\default.cshtml:54
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +99
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +185
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +86
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +142


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