Server Error in '/' Application.

Value cannot be null.
Parameter name: source

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.ArgumentNullException: Value cannot be null.
Parameter name: source

Source Error:


Line 13:         products = bollie.ProductResponse(Page.RouteData.Values("BolID"))
Line 14: 
Line 15:         With products.Products.Products(0)
Line 16:             imgBoek.ImageUrl = .Images.Medium
Line 17:             litTitel.Text = .Title

Source File: C:\RootWebstites\TinamicsCMS\ReceptenEnZo\WebControls\wucKookBoek.ascx.vb    Line: 15

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: source]
   System.Linq.Enumerable.ElementAtOrDefault(IEnumerable`1 source, Int32 index) +393
   WebControls_wucKookBoek.Page_Load(Object sender, EventArgs e) in C:\RootWebstites\TinamicsCMS\ReceptenEnZo\WebControls\wucKookBoek.ascx.vb:15
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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