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 86:         //}
Line 87:         
Line 88:         var cat = Item.Categoria;
Line 89:         while (cat.CategoriaPadreID != null)
Line 90:         {

Source File: c:\inetpub\vhosts\databases.gdlsystems.net\grupobotao.com\Controles\ucWebItemView.ascx.cs    Line: 88

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Controles_ucWebItemView.Page_Prerender(Object sender, EventArgs e) in c:\inetpub\vhosts\databases.gdlsystems.net\grupobotao.com\Controles\ucWebItemView.ascx.cs:88
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnPreRender(EventArgs e) +9907442
   System.Web.UI.Control.PreRenderRecursiveInternal() +88
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Control.PreRenderRecursiveInternal() +160
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +883


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