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
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.
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 :-).
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!
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:
Is this a problem of uHidesy or Standard Values?
Jeroen
err... prehaps it's uHidesy that has the issue.
Here's the method in question...
Line 35 is: DocumentType = (new Document(int.Parse(Id))).ContentType.Alias;
Id is probablly not instantiated.
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
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
is working on a reply...