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
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??
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?
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.
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.
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?
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??
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?
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.
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
hi there,
faced the same issue this morning, any one got any idea please...
Thanks,
Rizwan
Facing the same issue here, save then publish works fine but just adding new content and publishing causes this error.
Rich
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
Scrub that, error occurred again.
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
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
is working on a reply...
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.