Server Error in '/myworkbook' 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 9:              Dim db As Worldview_ExerciseDataContext = New Worldview_ExerciseDataContext()
Line 10: 
Line 11:             Dim gUserID As New Guid(Request.Cookies("User")("UserID"))
Line 12: 
Line 13:             Dim oRecord = (From r In db.Worldview_Exercises _

Source File: E:\web\yaneynet\myworkbook\Exercises\Worldview_Exercise.aspx.vb    Line: 11

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Exercises_Worldview_Exercise.Page_Load(Object sender, EventArgs e) in E:\web\yaneynet\myworkbook\Exercises\Worldview_Exercise.aspx.vb:11
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


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