Server Error in '/news' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 37:             root.globes.Helper.rebuild_for_preview(folder);
Line 38:             XmlDocument xmlNode = root.globes.Helper.cached_xml("/shared/xml.asp/nodes/" + folder + ".brands.xml");
Line 39:             XmlNodeList nodeList = xmlNode.SelectNodes("//brands/brand");
Line 40:             int count = 0;
Line 41:             foreach (XmlNode x in nodeList)

Source File: c:\globes\wwwroot\news\Brands\wucAgency2010.ascx.cs    Line: 39

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Brands_wucAgency2010.GetTheArticle(Int32 folder) in c:\globes\wwwroot\news\Brands\wucAgency2010.ascx.cs:39
   Brands_wucAgency2010.Page_Load(Object sender, EventArgs e) in c:\globes\wwwroot\news\Brands\wucAgency2010.ascx.cs:22
   System.Web.UI.Control.OnLoad(EventArgs e) +96
   System.Web.UI.Control.LoadRecursive() +153
   System.Web.UI.Control.LoadRecursive() +250
   System.Web.UI.Control.LoadRecursive() +250
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4739


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