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 27: //}
Line 28: 
Line 29:     var NewsID = @row.news_id;
Line 30:    // var Headline = @functions.CleanHTML(@row.news_title); 
Line 31:    // var Teaser = @functions.CleanHTML(@row.news_sub);

Source File: d:\Inetpub\vhosts\4brmusic.com\httpdocs\news.cshtml    Line: 29

Stack Trace:


[RuntimeBinderException: Cannot perform runtime binding on a null reference]
   CallSite.Target(Closure , CallSite , Object ) +148
   System.Dynamic.UpdateDelegates.UpdateAndExecute1(CallSite site, T0 arg0) +664
   CallSite.Target(Closure , CallSite , Object ) +264
   ASP._Page_news_cshtml.Execute() in d:\Inetpub\vhosts\4brmusic.com\httpdocs\news.cshtml:29
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +255
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +94
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +183
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +108
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +144


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