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 16:     Private strDay2 As String
Line 17:     Private conn As New SqlConnection(ConfigurationManager.ConnectionStrings("reservationCoccString").ConnectionString())
Line 18:     Private conn2 As New OleDbConnection(ConfigurationManager.ConnectionStrings("regist").ConnectionString())
Line 19:     Dim intPatientIDIndex As Integer
Line 20:     Dim cutCell As Integer

Source File: C:\inetpub\ReservationSystem\Reservation_fw4_V2\page\H_Tablecalendar.aspx.vb    Line: 18

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   page_H_Tablecalendar..ctor() in C:\inetpub\ReservationSystem\Reservation_fw4_V2\page\H_Tablecalendar.aspx.vb:18
   ASP.page_h_tablecalendar_aspx..ctor() in C:\inetpub\ReservationSystem\Reservation_fw4_V2\page\H_Tablecalendar.aspx.vb:912304
   __ASP.FastObjectFactory_app_web_yuicuhjo.Create_ASP_page_h_tablecalendar_aspx() +62
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +141
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +45
   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +417
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +74
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +157


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