Server Error in '/' Application.

Object reference not set to an instance of an object.

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: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 31: 	Boolean filtered = (k != "" || d != "" || f != "");
Line 32: 	if (filtered) {
Line 33: 		videos = WApp.ListVideos(k, dt, f, PG, ref p, out ct);
Line 34: 		pages = (ct + PG - 1) / PG;
Line 35: 	} else {

Source File: c:\inetpub\wwwroot\html\default.cshtml    Line: 33

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   __SealExtensionMethods.Find(IEnumerable`1 source, TK id) +74
   Seal.Conecta.Streamer.WApp.ListVideos(String keywords, Nullable`1 date, String filter, Int32 limit, Int32& page, Int32& total) +1409
   ASP._Page_html_default_cshtml.Execute() in c:\inetpub\wwwroot\html\default.cshtml:33
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +251
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +98
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +181
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +106
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +141


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