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 6:  
Line 7:          If Not IsPostBack Then
Line 8:              Dim userDS As Data.DataSet = SQLHelper.ExecuteDataset(SQLHelper.GetConnString, Data.CommandType.Text, "SELECT * FROM tblUsers WHERE guid = '" & Request.Cookies.Item("Snight.User").Value & "'")
Line 9:              If userDS.Tables(0).Rows.Count > 0 Then
Line 10:                 Dim userRow As Data.DataRow = userDS.Tables(0).Rows(0)

Source File: C:\Web Sites\silentnight\silentnight\snbeds_v5\register.aspx.vb    Line: 8

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   register.Page_Load(Object sender, EventArgs e) in C:\Web Sites\silentnight\silentnight\snbeds_v5\register.aspx.vb:8
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42