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 454:        If _CAT = 0 And _GAL > 0 Then
Line 455:            If gal.CountActiveGalleries > 1 Then
Line 456:                CType(Parent.FindControl("litPath"), Literal).Text = "<a href=""" & redirect_url.Replace("&", "&amp;") & """ title=""" & _l.GetLabelValue("lblGALSHOWALL") & """>" & _l.GetLabelValue("lblGALLIST") & "</a> / " & gal.Nome
Line 457:            End If
Line 458:        ElseIf _CAT > 0 And _GAL > 0 Then

Source File: C:\home\site\wwwroot\console\user\bootstrap-v3\MOD_GAL.ascx.vb    Line: 456

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   console_user_MOD_GAL.GetPath() in C:\home\site\wwwroot\console\user\bootstrap-v3\MOD_GAL.ascx.vb:456
   console_user_MOD_GAL.Page_Load(Object sender, EventArgs e) in C:\home\site\wwwroot\console\user\bootstrap-v3\MOD_GAL.ascx.vb:444
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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