Non-threaded

Forums » Bugs & Problems » Read Thread

Post reports about problems or bugs in here.
This bug was closed 4/16/2019: Fixed! https://gitlab.com/ChooseYourStory/chooseyourstory/issues/1

"About Us" - Missing Statistics Causing Exception

6 years ago

Visiting the About Us page currently throws an exception:

Exception Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

Source Error:

Line 31:         <p>ChooseYourStory.com is a community-driven website centered around Choose-Your-Own-Adventure style storygames. Members create their own storygames, play others members' storygames, participate in the forums, and a bunch of other things. Currently, the site has:</p>
Line 32:         <ul style="margin:18pt;margin-top:6pt;">
Line 33:             <li><%=BasicStatistics.GetStatistic("Member_Count").ToString("#,###,###")%> Members</li>
Line 34:             <li><%=BasicStatistics.GetStatistic("Total_Story_Count").ToString("#,###,###")%> Total Storygames
Line 35:                 (<%=BasicStatistics.GetStatistic("Published_Story_Count").ToString("#,###,###")%> Published)</li>

Source File: c:\Websites\ChooseYourStory\ChooseYourStory.com\help\AboutUs.aspx

Stack Trace:

[KeyNotFoundException: The given key was not present in the dictionary.]
   System.ThrowHelper.ThrowKeyNotFoundException() +36
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +51
   ASP.help_aboutus_aspx.__Render__control2(HtmlTextWriter __w, Control parameterContainer) in c:\Websites\ChooseYourStory\ChooseYourStory.com\help\AboutUs.aspx:33
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +114
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   ChooseYourStory.WebApplication.Pages.CysPageBase.RenderBodyContent1(HtmlTextWriter writer) in C:\ProgramData\InedoAgent\BuildMaster\Temp\_E67973\Src\ChooseYourStory.WebApplication\Pages\CysPageBase.cs:669
   ChooseYourStory.WebApplication.Pages.CysPageBase.Render1(HtmlTextWriter writer) in C:\ProgramData\InedoAgent\BuildMaster\Temp\_E67973\Src\ChooseYourStory.WebApplication\Pages\CysPageBase.cs:644
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8817

So basically, the member count data (at least) is missing. Maybe it's just until the system does a recount, maybe not, but it's been like this since 5 AM site time.

"About Us" - Missing Statistics Causing Exception

6 years ago
Yup. Yet another one that resets fix. There really should be something that can be done about these, there seem to be a good number of them.

"About Us" - Missing Statistics Causing Exception

6 years ago
Yeah I saw that the other day but it magically fixed itself.