Question

Photo of Cody Tindall

0

Error Message "An item with the same key has already been added."

I got this after running a database import, so I know that its a problem with the database itself. It doesn't come up until I click to view a profile. All the reports still pull up their field infomation..

 

Exception Log:

HttpUnhandledException in System.Web

Message
Exception of type 'System.Web.HttpUnhandledException' was thrown.

Stack Trace

   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.themes_rock_layouts_persondetail_aspx.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

- ArgumentException in mscorlib

Message
An item with the same key has already been added.

Stack Trace

   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at Rock.Attribute.Helper.LoadAttributes(IHasAttributes entity, RockContext rockContext)
   at Rock.Web.UI.RockPage.GetCurrentContext(EntityTypeCache entity)
   at Rock.Web.UI.RockBlock.OnInit(EventArgs e)
   at Rock.Web.UI.PersonBlock.OnInit(EventArgs e)
   at RockWeb.Blocks.Crm.PersonDetail.Badges.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.AddedControl(Control control, Int32 index)
   at System.Web.UI.ControlCollection.Add(Control child)
   at Rock.Web.UI.RockPage.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  • Photo of Cody Tindall

    0

    I cleared the cache and restarted Rock and that seems to have solved the problem! I'm leaving this incase anyone else runs into this.