Server Error in '/' Application.

Value cannot be null.
Parameter name: value

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

Source Error:


Line 22:             Dim dbAccessoriesValue As StoreClassificationValueRow = StoreClassificationValueRow.GetRowByValueCode(DB, ClassificationValueValueCode.Accessories)
Line 23:             'Get Accessories value Id and sub department
Line 24:             RelatedValueIds = Classification.GetDepartmentAndSubDep(HttpContext.Current, DB, GlobalSiteId, dbAccessoriesValue.ValueId)
Line 25: 
Line 26:             CurrentOrderItem = CurrentSitePage.CurrentOrderItem

Source File: C:\inetpub\www.wholesalehoses.com\web\modules\Store\Interstitial.ascx.vb    Line: 24

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: value]
   System.Web.Caching.CacheEntry..ctor(String key, Object value, CacheDependency dependency, CacheItemRemovedCallback onRemovedHandler, DateTime utcAbsoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, Boolean isPublic, CacheInternal cache) +1860736
   System.Web.Caching.CacheInternal.DoInsert(Boolean isPublic, String key, Object value, CacheDependency dependencies, DateTime utcAbsoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback, Boolean replace) +139
   System.Web.Caching.AspNetCache.Insert(String key, Object item, CacheInsertOptions options) +130
   Store.Classification.GetDepartmentAndSubDep(HttpContext Context, Database DB, Int32 SiteId, Int32 ValueId) +707
   Interstitial.Page_PreRender(Object sender, EventArgs e) in C:\inetpub\www.wholesalehoses.com\web\modules\Store\Interstitial.ascx.vb:24
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +11906436
   System.Web.UI.Control.PreRenderRecursiveInternal() +162
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6875


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