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 67:     Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Line 68:         If Not IsPostBack Then
Line 69:             Dim userDS As Data.DataSet = SQLHelper.ExecuteDataset(SQLHelper.GetConnString, Data.CommandType.Text, "SELECT * FROM tblUsers WHERE guid = '" & Request.Cookies.Item("Snight.User").Value & "'")
Line 70:             If userDS.Tables(0).Rows.Count > 0 Then
Line 71:                 Dim userRow As Data.DataRow = userDS.Tables(0).Rows(0)

Source File: C:\Web Sites\silentnight\silentnight\snbeds_v5\contactForm.aspx.vb    Line: 69

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   contactForm.Page_Load(Object sender, EventArgs e) in C:\Web Sites\silentnight\silentnight\snbeds_v5\contactForm.aspx.vb:69
   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