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 305:				case "featured-playlists":
Line 306:					PlaylistHtml = "";
Line 307:					for (int a = 0; a < Resp.FeaturedPlaylists.Results.Count; a++)
Line 308:					{
Line 309:						PlaylistHtml += FormatPlaylist(Resp.FeaturedPlaylists.Results[a], 3, Section: Section, TrackPrice: TrackPrice);

Source File: d:\sites\sttw2020\karaoke\App_Code\AdvSearch_App.cs    Line: 307

Stack Trace:


[RuntimeBinderException: Cannot perform runtime binding on a null reference]
   CallSite.Target(Closure , CallSite , Object ) +115
   AdvSearch_App.TempFuncyMan(Object RawData, String SearchQuery, String OrderBy, String RequestedType, Int32 RequestedPage, String PageId, String Section, String TagUrl, String Brand, String CustomLayout, String PageGuid, WebsiteData WD) in d:\sites\sttw2020\karaoke\App_Code\AdvSearch_App.cs:307
   controls_pages.Page_Load(Object sender, EventArgs e) in d:\sites\sttw2020\karaoke\controls\pages.ascx.cs:1756
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Control.LoadRecursive() +131
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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