Server Error in '/EventInfo' 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 364:      StringCollection teamEntryGroupIDs = new StringCollection();
Line 365:      foreach(string entryGroupID in entryGroupIDs) {
Line 366:        if(((TourGroup)Event.EntryGroups[entryGroupID]).HasTeams) {
Line 367:          teamEntryGroupIDs.Add(entryGroupID);
Line 368:        }

Source File: d:\Equinis\HippoBase\AspNetApps\EventInfo\Entries\CompetitorHorse.aspx    Line: 366

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.entries_competitorhorse_aspx.QueryTeamChefs(StringCollection entryGroupIDs) in d:\Equinis\HippoBase\AspNetApps\EventInfo\Entries\CompetitorHorse.aspx:366
   ASP.entries_competitorhorse_aspx.OnLoad(EventArgs e) in d:\Equinis\HippoBase\AspNetApps\EventInfo\Entries\CompetitorHorse.aspx:270
   System.Web.UI.Control.LoadRecursive() +89
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1532


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