Server Error in '/' Application.

Object variable or With block variable not set.

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 variable or With block variable not set.

Source Error:


Line 109:        Dim dtendevent, dtendeventformat
Line 110:        Dim mydetailcookie As String = ""
Line 111:        While rs.Read()
Line 112:            EVENT_DATE = rs("EVENT_DATE")
Line 113:            EVENT_END_DATE = rs("EVENT_END_DATE")

Source File: C:\inetpub\wwwroot\A2ZMS_2\MobileDetail.aspx.vb    Line: 111

Stack Trace:


[NullReferenceException: Object variable or With block variable not set.]
   Microsoft.VisualBasic.CompilerServices.Container..ctor(Object Instance) +1476167
   Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) +258
   MobileDetail.getDetail() in C:\inetpub\wwwroot\A2ZMS_2\MobileDetail.aspx.vb:111
   MobileDetail.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\A2ZMS_2\MobileDetail.aspx.vb:25
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1607


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