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 12:         Else
Line 13:             Dim tempR As DataRow = dbh.GetData("select * from teams where teamscanbeseen='True' and club=" & dbh.getClub() & " order by teamssort1")(0)
Line 14:             Response.Redirect("/" & dbh.navL & Request("club") & "/" & "about/teams/" & tempR("teamspagename") & "/")
Line 15:         End If
Line 16:     End Sub

Source File: C:\Inetpub\vhosts\aona.gr\httpdocs\teams.aspx    Line: 14

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.teams_aspx.Page_Init(Object sender, EventArgs e) in C:\Inetpub\vhosts\aona.gr\httpdocs\teams.aspx:14
   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