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 27:         Dim TF As Integer
Line 28:         Dim ltTitle As Literal = Master.FindControl("ltrTitle")
Line 29:         idGaleria = CInt(DS.Tables(0).Rows(I)("idg").ToString)
Line 30:         LinkGaleria = DS.Tables(0).Rows(I)("linkgal").ToString
Line 31:         Dim TituloGaleria As String = MX1Imagens.SelectEscalar("SELECT titulogaleria FROM galerias WHERE idgaleria=" & idGaleria)

Source File: D:\host\motox\web\connect\galerias.aspx.vb    Line: 29

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   connect_galerias.Page_Load() in D:\host\motox\web\connect\galerias.aspx.vb:29
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +9873237
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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