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 21:         if (Guid.TryParse(blogIdString, out blogId))
Line 22:         {
Line 23:             Blog blogItem = Blog.GetBlog(blogId);
Line 24:             RenderPage(blogItem);
Line 25:         }

Source File: c:\inetpub\tradingmatecomau\ToolboxTalkDetails.aspx.cs    Line: 23

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.Blog..ctor(Guid blogId) in C:\Git\tradingmate\PROList.Administration\Blog.cs:43
   PROList.Administration.Blog.GetBlog(Guid blogId) in C:\Git\tradingmate\PROList.Administration\Blog.cs:179
   _ToolboxTalkDetails.Page_Load(Object sender, EventArgs e) in c:\inetpub\tradingmatecomau\ToolboxTalkDetails.aspx.cs:23
   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