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 26:         else if (Int32.TryParse(shortIdString, out shortId))
Line 27:         {
Line 28:             Blog blogItem = Blog.GetBlog(shortId);
Line 29:             RenderPage(blogItem);
Line 30:         }

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

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(Int32 shortId) in C:\Git\tradingmate\PROList.Administration\Blog.cs:127
   PROList.Administration.Blog.GetBlog(Int32 shortId) in C:\Git\tradingmate\PROList.Administration\Blog.cs:184
   _ToolboxTalkDetails.Page_Load(Object sender, EventArgs e) in c:\inetpub\tradingmatecomau\ToolboxTalkDetails.aspx.cs:28
   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