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 116:            storeProduct = BusinessLogic.StoreProductsM.GetStoreProductByID2(storeProductId);
Line 117:
Line 118:            nextStoreProductId = BusinessLogic.StoreProductsM.GetNextId(storeProductId, Session["lang"].ToString(), storeSubCategoryId); // In case there is multi to multi parent, change the "" to the multi parent Id
Line 119:            prevStoreProductId = BusinessLogic.StoreProductsM.GetPrevId(storeProductId, Session["lang"].ToString(), storeSubCategoryId); // In case there is multi to multi parent, change the "" to the multi parent Id
Line 120:        }

Source File: c:\inetpub\wwwroot\hamesameach.co.il\Moduls\store\product_id\spid_old.ascx    Line: 118

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   BusinessLogic.StoreProductsM.GetNextId(String id, String langId, String parentId_MTM) in D:\wwwroot\hamesameach.co.il\Project\BusinessLogiic\storeProducts\StoreProductsM.cs:2600
   ASP.spid_old.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\hamesameach.co.il\Moduls\store\product_id\spid_old.ascx:118
   System.Web.UI.Control.OnLoad(EventArgs e) +105
   System.Web.UI.Control.LoadRecursive() +67
   System.Web.UI.Control.LoadRecursive() +161
   System.Web.UI.Control.LoadRecursive() +161
   System.Web.UI.Control.LoadRecursive() +161
   System.Web.UI.Control.LoadRecursive() +161
   System.Web.UI.Control.LoadRecursive() +161
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3784


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