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 37:         catParent = cCategory.getCategory(conn, cat.idParentCategory)
Line 38: 
Line 39:         If Not ParentCat.idParentCategory Is Nothing AndAlso ParentCat.idParentCategory.Trim.Length > 0 Then
Line 40:             GrandParentCat = Vectweb.sm.core.cCategory.getCategory(conn, ParentCat.idParentCategory)
Line 41:         End If

Source File: D:\_SITES\greenmedia.pt - www\_components\comingsoon.ascx.vb    Line: 39

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   _components_comingsoon.Page_Load(Object sender, EventArgs e) in D:\_SITES\greenmedia.pt - www\_components\comingsoon.ascx.vb:39
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2852


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