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 19: 
Line 20: 
Line 21:         var descricao = funcoesTexto.removeHTML(ltDescricao.Text.Replace("\n", " - "));
Line 22:         var palavrasChave = "";
Line 23:         string[] palavras = funcoesTexto.arrumaEndereco(ltTitulo.Text + " " + descricao).Split('-');

Source File: d:\inetpub\wwwroot\correadacosta_novo\galeria.aspx.cs    Line: 21

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   galeria.FormView1_DataBound(Object sender, EventArgs e) in d:\inetpub\wwwroot\correadacosta_novo\galeria.aspx.cs:21
   System.Web.UI.WebControls.BaseDataBoundControl.OnDataBound(EventArgs e) +125
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +133
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +105
   System.Web.UI.Control.EnsureChildControls() +106
   System.Web.UI.Control.PreRenderRecursiveInternal() +57
   System.Web.UI.Control.PreRenderRecursiveInternal() +226
   System.Web.UI.Control.PreRenderRecursiveInternal() +226
   System.Web.UI.Control.PreRenderRecursiveInternal() +226
   System.Web.UI.Control.PreRenderRecursiveInternal() +226
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3670


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