Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lee 1123 posts 3059 karma points
    Sep 23, 2010 @ 20:51
    Lee
    0

    The given key was not present in the dictionary On Publish

    I have installed locally on my machine, and everything is fine - But as soon as I try to save and PUBLISH I get the following - Save on its own is fine, but publishing causes the error.  So its something to do with the onpublish event / DateFolders, as even though I get this message the node is published when I refresh the page, but no Date Folders?

    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:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [KeyNotFoundException: The given key was not present in the dictionary.]
       System.Collections.Generic.Dictionary`2.get_Item(TKey key) +4243807
       umbraco.library.niceUrlDo(Int32 nodeID, Int32 startNodeDepth) +461
       umbraco.library.NiceUrlFullPath(Int32 nodeID) +53
       Umlaut.Umb.Blog.EventHandlers.Autoping.Document_AfterPublish(Document sender, PublishEventArgs e) +565
       umbraco.cms.businesslogic.web.Document.FireAfterPublish(PublishEventArgs e) +130
       umbraco.cms.businesslogic.web.Document.PublishWithResult(User u) +3098
       umbraco.cms.presentation.editContent.Publish(Object sender, EventArgs e) +508
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       umbraco.controls.ContentControl.savePublish(Object Sender, ImageClickEventArgs e) +165
       System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +134
       System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +165
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3691
    

     

  • Lee 1123 posts 3059 karma points
    Sep 23, 2010 @ 20:56
    Lee
    0

    Hmmm ok it seems to be published but its not?  Look at this

    Its not creating the URL :S... Am I supposed to have a PostDate property on the blog doctype?  I have moved this blog post and the blog doctypes under my master doctype but wouldn't have thought that would effect creating a URL??  As I have loads of other doctypes under it??

  • Lee 1123 posts 3059 karma points
    Sep 23, 2010 @ 21:13
    Lee
    0

    Can anyone tell me if all the changes Mr Howarth has been making on Codeplex have been added to this latest release?  Only ask as he has been changing a lot of things by the looks of it on codeplex?

  • Matt 10 posts 32 karma points
    Oct 13, 2010 @ 19:17
    Matt
    0

    I've had the same issue. I managed to get around this problem by first saving my post (which will create the link) and then publish the post.

  • mfeola 117 posts 221 karma points
    Nov 09, 2010 @ 22:29
    mfeola
    0

    when you refresh the node tree does the blog post appear in there date folder where it should be? That is what is happening to me as well

  • Rizwan Haider 4 posts 24 karma points
    Dec 03, 2010 @ 11:52
    Rizwan Haider
    0

    hi there,

    faced the same issue this morning, any one got any idea please...

    Thanks,

    Rizwan

  • Rich Green 2246 posts 4006 karma points
    Dec 05, 2010 @ 14:00
    Rich Green
    0

    Facing the same issue here, save then publish works fine but just adding new content and publishing causes this error.

    Rich

  • Rich Green 2246 posts 4006 karma points
    Dec 05, 2010 @ 14:44
    Rich Green
    0

    Small update.

    When I added the blog package to an existing 4.5.2 install (where the main site already runs) I do not get this error, when I get a chance I'll investigate further.

    Rich

     

  • Rich Green 2246 posts 4006 karma points
    Dec 05, 2010 @ 19:05
    Rich Green
    0

    Scrub that, error occurred again.

  • Rizwan Haider 4 posts 24 karma points
    Dec 06, 2010 @ 11:11
    Rizwan Haider
    0

    hi

    Following actions might help, as it helped me to get rid of this exception:

    1. Backed up current application + database

    2. uninstalled the BlogForUmbraco from devloper--> Packages --> Installed Packages

    3. made sure that there is no blog page in content section

    4. Then installed the BlogForumbraco, in Developer section --> Install Local Package

    5. Things are fine for me so far...

     

    Rizwan

     

  • Rich Green 2246 posts 4006 karma points
    Dec 07, 2010 @ 18:18
    Rich Green
    0

    I am still getting this error, the reason this occurs I think is because their is no folder for the blog post until it is saved (then autofolders kicks in) then it needs to be saved again, then published.

    Anyone found a neater work around / fix? 

    Rich

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies