Server Error in '/' Application.

Value cannot be null.
Parameter name: item

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: item

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: item]
   Sitecore.Diagnostics.Assert.ArgumentNotNull(Object argument, String argumentName) +64
   Sitecore.Resources.Media.MediaProvider.GetMediaUrl(MediaItem item, MediaUrlOptions options) +54
   CrayolaWAP.Utilities.FieldAsImageUrl(Item item, String name, Int32 maxHeight, Int32 maxWidth) +462
   CrayolaWAP.International.layouts.<>c__DisplayClass0_0.<Page_Load>b__1(<>f__AnonymousType53`2 <>h__TransparentIdentifier0) +120
   System.Linq.WhereSelectListIterator`2.MoveNext() +117
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +162
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +113
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +80
   CrayolaWAP.International.layouts.Product_info_sublayoutSublayout.Page_Load(Object sender, EventArgs e) +921
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


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