Copied to clipboard

Flag this post as spam?

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


  • Jeff 30 posts 62 karma points
    Feb 27, 2013 @ 18:39
    Jeff
    0

    u6 YSOD on uBlogsy 3.0b2 where Blog is child of Home.

    Relocated the Blog node under Home and republished the Blog node and children. (Note this is not a fresh install but an existing site). Following error occurs:

    Server Error in '/' Application.
    Item has already been added. Key in dictionary: 'GetSiteRoot_uBlogsySiteRoot'  Key being added: 'GetSiteRoot_uBlogsySiteRoot'
    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.ArgumentException: Item has already been added. Key in dictionary: 'GetSiteRoot_uBlogsySiteRoot'  Key being added: 'GetSiteRoot_uBlogsySiteRoot'
    Source Error: 
    Line 11: 
    Line 12:     // get title of page
    Line 13:     var landing = DataService.Instance.GetSiteRoot(Model.Content) ?? DataService.Instance.GetLanding(Model.Content);
    Line 14:     var title = landing.GetPropertyValue("uBlogsyContentTitle");
    Line 15:     if (Model.Content.Id != landing.Id)

    Source File: <*** hidden *****>\Views\Partials\uBlogsy\Global\uBlogsyGlobalSeoMeta.cshtml    Line: 13 
    Stack Trace: 
    [ArgumentException: Item has already been added. Key in dictionary: 'GetSiteRoot_uBlogsySiteRoot'  Key being added: 'GetSiteRoot_uBlogsySiteRoot']
       System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) +12646422
       uBlogsy.Common.Helpers.CacheHelper.AddToRequestCache(String key, Object value) in D:\_PROJECTS\Personal\uBlogsy\uBlogsy MVC\Source\uBlogsy.Common\Helpers\CacheHelper.cs:19
       uBlogsy.BusinessLogic.DataService.GetSiteRoot(IPublishedContent node) in D:\_PROJECTS\Personal\uBlogsy\uBlogsy MVC\Source\uBlogsy.BusinessLogic\DataService.cs:135
       ASP._Page_Views_Partials_uBlogsy_Global_uBlogsyGlobalSeoMeta_cshtml.Execute() in **HIDDEN**\Views\Partials\uBlogsy\Global\uBlogsyGlobalSeoMeta.cshtml:13
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
       System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +125
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +196
       System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +147
       ASP._Page_Views__uBlogsyBaseSite_cshtml.b__0() in **HIDDEN**\Views\_uBlogsyBaseSite.cshtml:14
    System.Web.WebPages.<>c__DisplayClassb.b__9(TextWriter tw) +211 ASP._Page_Views__uBlogsyBase_cshtml.Execute() in **HIDDEN**\Views\_uBlogsyBase.cshtml:6
    System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +125 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +196 System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +208 System.Web.WebPages.WebPageBase.PopContext() +199 System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +208 System.Web.WebPages.WebPageBase.PopContext() +199 System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +208 System.Web.WebPages.WebPageBase.PopContext() +199 System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +380 System.Web.Mvc.<>c__DisplayClass1a.b__17() +33 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +263 System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +691 System.Web.Mvc.<>c__DisplayClass1d.b__19() +40 System.Web.Mvc.Async.<>c__DisplayClass1.b__0() +20 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53 System.Web.Mvc.Async.<>c__DisplayClass4.b__3(IAsyncResult ar) +20 System.Web.Mvc.<>c__DisplayClass8.b__3(IAsyncResult asyncResult) +42 System.Web.Mvc.Async.<>c__DisplayClass4.b__3(IAsyncResult ar) +20 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +469 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +375


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

     

     

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Feb 27, 2013 @ 19:37
    Anthony Dang
    100

    Thanks for reporting this. That's a major oversight on my part.

    I've fixed it and added a patch http://our.umbraco.org/FileDownload?id=6114

    Just replace the files in /bin/

  • Jeff 30 posts 62 karma points
    Feb 27, 2013 @ 20:27
    Jeff
    0

    Thanks, that fixes it.

    PS: Is the 3.0 source code available anywhere?

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Feb 28, 2013 @ 01:20
  • Michael Sims 119 posts 387 karma points
    Apr 04, 2013 @ 15:31
    Michael Sims
    0

    Not quite fixed yet. I'm getting almost the same message:

    2013-04-04 14:29:13,051 [12] ERROR Umbraco.Web.WebServices.SaveFileController - [Thread 22] An error occurred saving a file. Template does not exist
    System.ArgumentException: Item has already been added. Key in dictionary: '_ublogsybasesite'  Key being added: '_ublogsybasesite'
       at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
       at umbraco.cms.businesslogic.template.Template.initTemplateAliases()
       at umbraco.cms.businesslogic.template.Template.set_Alias(String value)
       at Umbraco.Web.WebServices.SaveFileController.SaveTemplate(String templateName, String templateAlias, String templateContents, Int32 templateId, Int32 masterTemplateId)

     

    I should have clarified this is when I try to save a new Template file in the Settings section.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Apr 04, 2013 @ 17:49
    Anthony Dang
    0

    That's an umbraco issue.

    Which version of umbraco and ublogsy?

    What does your content tree look like?

     

  • Michael Sims 119 posts 387 karma points
    Apr 09, 2013 @ 10:09
    Michael Sims
    0

    I figured out what was going on. If you take a clean install of 6.0.3 and the latest version of uBlogsy then everything screws up. It actually gives the site root and site landing templates the same unique id in the database. Not sure how that is possible but I guess it is an Umbraco issue rather than uBlogsy.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Apr 10, 2013 @ 01:47
    Anthony Dang
    0

    That's nuts. Do you have any more details? About this? 

     

Please Sign in or register to post replies

Write your reply to:

Draft