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 61:         var itemWebDesc = ServiceFactory.GetInstance<IProductService>()
Line 62:             .GetItemWebOptionDescription(itemId);
Line 63:         var itemUrl = SE.MakeProductLink(itemId.ToString(), itemWebDesc.SETitle);
Line 64: 
Line 65:         btnProductImg.ImageUrl = itemImg.src;

Source File: c:\Program Files (x86)\Connected Business 22 Enterprise - Imperial\CBE\Web\productreview.aspx.cs    Line: 63

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   productreview.LoadProductInfo(Int32 itemId, String itemCode) in c:\Program Files (x86)\Connected Business 22 Enterprise - Imperial\CBE\Web\productreview.aspx.cs:63
   productreview.OnInit(EventArgs e) in c:\Program Files (x86)\Connected Business 22 Enterprise - Imperial\CBE\Web\productreview.aspx.cs:26
   System.Web.UI.Control.InitRecursive(Control namingContainer) +165
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1597


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