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 14:             Else
Line 15:                 Coll = New PathImageCollection(PathID)
Line 16:                 ImageCache.Add(PathID, Coll)
Line 17:             End If
Line 18: 

Source File: D:\Sites\NiceSurprises\www\App_Code\E-Commerce\PathImageProvider.vb    Line: 16

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ZZ.PathImageProvider.GetPathImages(Int64 PathID) in D:\Sites\NiceSurprises\www\App_Code\E-Commerce\PathImageProvider.vb:16
   ZZ.ECS.PathContent.GetPathProducts(String Path, Boolean IncludeImages, Int32 PageSize, Int32 CurrentPage) in D:\Sites\NiceSurprises\www\App_Code\E-Commerce\PathContent.vb:187
   ZZ.ECS.PathContent.GetPathProducts(Boolean IncludeImages, Int32 PageSize, Int32 CurrentPage) in D:\Sites\NiceSurprises\www\App_Code\E-Commerce\PathContent.vb:132
   ZZ.ECS.RangeProducts.Render(Int64[] Content) in D:\Sites\NiceSurprises\www\App_Code\E-Commerce\Controls\Content\RangeProducts.vb:50
   ZZ.ECS.RangeProducts.Create(Int64[] Content) in D:\Sites\NiceSurprises\www\App_Code\E-Commerce\Controls\Content\RangeProducts.vb:94
   ZZ.ContentBase.Create(String Path, Int64[] Content, Control Parent, String View) in D:\Sites\NiceSurprises\www\App_Code\Bases\ContentBase.vb:262
   _Content.CreateControl(String TypeName, List`1 Content) in D:\Sites\NiceSurprises\www\Content.aspx.vb:237
   _Content.BuildContent() in D:\Sites\NiceSurprises\www\Content.aspx.vb:225
   _Content.LoadContent() in D:\Sites\NiceSurprises\www\Content.aspx.vb:162
   _Content.Page_Load(Object sender, EventArgs e) in D:\Sites\NiceSurprises\www\Content.aspx.vb:139
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832