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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   GnosisWebSite.Events.EventsHelper.TicketsRemaining() in C:\development\Websites\C4TemplateWeb\GnosisWebSite\Connect4\Plugins\EventMgmt\EventsHelper.vb:396
   GnosisWebSite.Events.EventsHelper.TicketsRemainingInPerson() in C:\development\Websites\C4TemplateWeb\GnosisWebSite\Connect4\Plugins\EventMgmt\EventsHelper.vb:410
   GnosisWebSite.TicketsToBuy.BuildTable() in C:\development\Websites\C4TemplateWeb\GnosisWebSite\Connect4\Plugins\EventMgmt\Controls\Support\RegistrationSubControls\TicketsToBuy.ascx.vb:13
   GnosisWebSite.TicketsToBuy.Build() in C:\development\Websites\C4TemplateWeb\GnosisWebSite\Connect4\Plugins\EventMgmt\Controls\Support\RegistrationSubControls\TicketsToBuy.ascx.vb:468
   GnosisWebSite.TicketsToBuy.Page_Init(Object sender, EventArgs e) in C:\development\Websites\C4TemplateWeb\GnosisWebSite\Connect4\Plugins\EventMgmt\Controls\Support\RegistrationSubControls\TicketsToBuy.ascx.vb:9
   System.Web.UI.Control.OnInit(EventArgs e) +97
   System.Web.UI.UserControl.OnInit(EventArgs e) +87
   System.Web.UI.Control.InitRecursive(Control namingContainer) +142
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +190
   System.Web.UI.ControlCollection.Add(Control child) +87
   GnosisWebSite.EventRegistrationHost.AddPart(IEventRegPart part) in C:\development\Websites\C4TemplateWeb\GnosisWebSite\Connect4\Plugins\EventMgmt\Controls\EventRegistrationHost.ascx.vb:422
   GnosisWebSite.EventRegistrationHost.AddCurrentControl() in C:\development\Websites\C4TemplateWeb\GnosisWebSite\Connect4\Plugins\EventMgmt\Controls\EventRegistrationHost.ascx.vb:244
   GnosisWebSite.EventRegistrationHost.PreRenderHandler(Object sender, EventArgs e) in C:\development\Websites\C4TemplateWeb\GnosisWebSite\Connect4\Plugins\EventMgmt\Controls\EventRegistrationHost.ascx.vb:147
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +9883194
   System.Web.UI.Control.PreRenderRecursiveInternal() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +906


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