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 18:         End If
Line 19:         mainT = dbh.GetData("select * from cat1 where cat1pagename='" & Request("tittle") & "'")
Line 20:         Session("activeMenuCat") = "c" & CStr(mainT(0)("cat1id1"))
Line 21:         Session("activeMenuSubCat") = CStr(p.id1)
Line 22:         Page.Title = p.metaTittle

Source File: C:\Inetpub\vhosts\trikifun.gr\httpdocs\cat.aspx    Line: 20

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.cat_aspx.Page_Init(Object sender, EventArgs e) in C:\Inetpub\vhosts\trikifun.gr\httpdocs\cat.aspx:20
   System.Web.UI.Control.OnInit(EventArgs e) +105
   System.Web.UI.Page.OnInit(EventArgs e) +15
   System.Web.UI.Control.InitRecursive(Control namingContainer) +165
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1597


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