Copied to clipboard

Flag this post as spam?

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


  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    May 21, 2013 @ 21:18
    Jeroen Breuer
    0

    uHidesy and Standard Values package error

    Hello,

    I don't know if I should post this in uHidesy or Standard Values, but for now I'll do it here ;-). After adding uHidesy to a documenttype that documenttype doesn't work anymore in Standard Values. I'm getting this error when opening Standard Values:

    No Document exists with Version '00000000-0000-0000-0000-000000000000' 
    Beschrijving: Er is een onverwerkte uitzondering opgetreden tijdens het uitvoeren van de huidige webaanvraag. Raadpleeg de stacktracering voor meer informatie over deze fout en de oorsprong ervan in de code. 
    
    Details van uitzondering: System.ArgumentException: No Document exists with Version '00000000-0000-0000-0000-000000000000'
    
    Fout in bron: 
    
    Er is een onverwerkte uitzondering gegenereerd tijdens het uitvoeren van de huidige webaanvraag. Aan de hand van de onderstaande tracering van de uitzonderingsstack kunt u meer informatie verkrijgen over de oorsprong en de locatie van de uitzondering.  
    
    Stacktracering: 
    
    [ArgumentException: No Document exists with Version '00000000-0000-0000-0000-000000000000']
       umbraco.cms.businesslogic.web.Document.setupNode() +752
       umbraco.cms.businesslogic.web.Document..ctor(Int32 id) +19
       uHidesy.Umbraco.usercontrols.uHidesy.uHidesy.OnLoad(EventArgs e) in D:\_PROJECTS\uHidesy - Property Hider\Branches\1.13_noDesc\Umbraco.Web\usercontrols\uHidesy\uHidesy.ascx.cs:35
       System.Web.UI.Control.LoadRecursive() +71
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178

    Is this a problem of uHidesy or Standard Values?

    Jeroen

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    May 21, 2013 @ 21:50
    Anthony Dang
    100

    err... prehaps it's uHidesy that has the issue.

    Here's the method in question...

     protected override void OnLoad(EventArgs e)
            {
                base.OnLoad(e);
    
                Id = Request.QueryString["id"];
                DocumentType = (new Document(int.Parse(Id))).ContentType.Alias;
                if (Page.IsPostBack)
                {
                    SaveSettings();
                }
    
                // get user type
                IsAdmin = umbraco.helper.GetCurrentUmbracoUser().UserType.Name == "Administrators";
    
                LoadSettings();
    
                // DataBind();
            }

     

    Line 35 is: DocumentType = (new Document(int.Parse(Id))).ContentType.Alias;

    Id is probablly not instantiated.

    I assume this is happening in the settings section, and not the content section? ... if so, I guess uHidesy is not going to work as it requires the current document id... you could download the source.... add an if statement or a try catch.
  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    May 21, 2013 @ 21:57
    Jeroen Breuer
    0

    Thanks for the info.

    Yes this exception is in the settings section when I'm trying to edit a Standard Values docuenttype. I think a try catch should fix it. I'll try to change it in the source and let you know :-).

    Jeroen

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    May 22, 2013 @ 11:15
    Jeroen Breuer
    0

    I downloaded the source and added it to a new WebApplication. After that I added the try catch and now Standard Values is working again. Thanks for the help!

    Jeroen

  • 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