Server Error in '/' Application.

The given key was not present in the dictionary.

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.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

Source Error:


Line 31:     private void RenderPage(Guid eventId)
Line 32:     {
Line 33:         Event eventItem = Event.getEvent(eventId);
Line 34: 
Line 35:         if(eventItem.UserId == Guid.Parse("5FEE0BA6-ABF7-4855-BE2C-DC45670E8AEF"))

Source File: c:\inetpub\tradingmatecomau\UpcomingEventDetails.aspx.cs    Line: 33

Stack Trace:


[KeyNotFoundException: The given key was not present in the dictionary.]
   System.ThrowHelper.ThrowKeyNotFoundException() +38
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +54
   PROList.Administration.Event..ctor(Guid eventId) in C:\Git\tradingmate\PROList.Administration\Event.cs:44
   PROList.Administration.Event.getEvent(Guid eventId) in C:\Git\tradingmate\PROList.Administration\Event.cs:81
   UpcomingEventDetails.RenderPage(Guid eventId) in c:\inetpub\tradingmatecomau\UpcomingEventDetails.aspx.cs:33
   UpcomingEventDetails.Page_Load(Object sender, EventArgs e) in c:\inetpub\tradingmatecomau\UpcomingEventDetails.aspx.cs:21
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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