Item has already been added exception

Topics: Support Request
Sep 4, 2008 at 11:02 AM
Hi,

I need your help. My dasBlog (version 1.9) went down. Every time I enter it I get this exception:

Item has already been added. Key in dictionary: "75fd2058-d926-452b-8861-9744562ff86f" Key being added: "75fd2058-d926-452b-8861-9744562ff86f"

stack trace:
[ArgumentException: Item has already been added.  Key in dictionary: "75fd2058-d926-452b-8861-9744562ff86f"  Key being added: "75fd2058-d926-452b-8861-9744562ff86f"]
System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) +955
System.Collections.Hashtable.Add(Object key, Object value) +11
newtelligence.DasBlog.Runtime.EntryIdCache.Build(DataManager data) +1059
newtelligence.DasBlog.Runtime.EntryIdCache.Ensure(DataManager data) +150
newtelligence.DasBlog.Runtime.BlogDataServiceXml.GetEntryIdCache() +78
newtelligence.DasBlog.Runtime.BlogDataServiceXml.newtelligence.DasBlog.Runtime.IBlogDataService.GetDaysWithEntries(TimeZone tz) +39
newtelligence.DasBlog.Web.Core.ArchiveMonthsList.ArchiveMonthList_Load(Object sender, EventArgs e) +150
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain() +750
I don't understand why it's happening. There's no duplicate post in my files nor two files of the same date. I copied the content folder to a new content2 folder and change the siteConfig.xml file so the contentDir is ~/content2. The problem now is that it only shows posts from half a year back although all the posts files are there.

Your help is appreciated.
Thank you.

Coordinator
Sep 4, 2008 at 12:27 PM
Version 1.9 has a bug that allows duplicate xml keys in content if date is changed and/or other actions happen/unknown such as language changes in VISTA???

Your options are to update to a later build of 1.9+ and/or manually search for that key and remove the dupe post entry and recreate it and let the system recreate a new key.

See these links for more related detail related to this old bug.

http://www.dasblog.us/viewtopic.php?t=294&highlight=key+dictionary

http://dasblog.us/viewtopic.php?t=619&highlight=key+dictionary (See awen's post, this is more like your issue).

If you can manually recover, I would then update to a later build; if you need to stay on asp.net 1.1 then just move to a little later release, or go all the way to 2.2 coming out soon.

Luck
Tom

Coordinator
Sep 19, 2008 at 5:04 AM
Tom's right. Text search for that GUID. Be comforted that this is a RARE thing. It's happened to me twice in 6 years.

On Thu, Sep 4, 2008 at 5:27 AM, tomwatts <notifications@codeplex.com> wrote:

From: tomwatts

Version 1.9 has a bug that allows duplicate xml keys in content if date is changed and/or other actions happen/unknown such as language changes in VISTA???

Your options are to update to a later build of 1.9+ and/or manually search for that key and remove the dupe post entry and recreate it and let the system recreate a new key.

See these links for more related detail related to this old bug.

http://www.dasblog.us/viewtopic.php?t=294&highlight=key+dictionary

http://dasblog.us/viewtopic.php?t=619&highlight=key+dictionary (See awen's post, this is more like your issue).

If you can manually recover, I would then update to a later build; if you need to stay on asp.net 1.1 then just move to a little later release, or go all the way to 2.2 coming out soon.

Luck
Tom

Read the full discussion online.

To add a post to this discussion, reply to this email (dasBlog@discussions.codeplex.com)

To start a new discussion for this project, email dasBlog@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com




--
Scott Hanselman
http://www.hanselman.com