Server Error in '/' Application.

Value cannot be null.
Parameter name: child

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.ArgumentNullException: Value cannot be null.
Parameter name: child

Source Error:


Line 88:             // Associo all'albero il nodo root che ora ha tutta la gerarchia sottostante
Line 89:             alberoCategorie.Nodes.Clear();
Line 90:             alberoCategorie.Nodes.Add(root);
Line 91:         }
Line 92: 	}

Source File: d:\home\h441883.winp063.arubabusiness.it\dantezamuner.it\App_Code\AlberoCategorie.cs    Line: 90

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: child]
   System.Web.UI.WebControls.TreeNodeCollection.AddAt(Int32 index, TreeNode child) +2302568
   System.Web.UI.WebControls.TreeNodeCollection.Add(TreeNode child) +19
   AlberoCategorie..ctor(TreeView alberoCategorie, Boolean attivaNavigazione, String codiceLingua) in d:\home\h441883.winp063.arubabusiness.it\dantezamuner.it\App_Code\AlberoCategorie.cs:90
   ASPNET.StarterKit.Commerce.C_MenuTree.Page_Load(Object sender, EventArgs e) in d:\home\h441883.winp063.arubabusiness.it\dantezamuner.it\applicazioniweb\ecommerce\ecommerce-aspx\en\_MenuTree.ascx.cs:35
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.BasePartialCachingControl.LoadRecursive() +53
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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