System.NullReferenceException: Object reference not set to an instance of an object. at Sidebar.DisplaySideBar(String sCaptionSel, String sTextSel, Boolean bDisplayWebCategory) in C:\inetpub\wwwroot\App_Code\Sidebar.aspx.vb:line 531 at Advancedwebpagefunctions.DisplayFrame(Object HomePage) in C:\inetpub\wwwroot\App_Code\AdvancedWebPageFunctions.aspx.vb:line 505 at Advancedwebpagefunctions.ShowCategory(Boolean bDisplayWebCategory) in C:\inetpub\wwwroot\App_Code\AdvancedWebPageFunctions.aspx.vb:line 990 at Advancedwebpagefunctions.Main() in C:\inetpub\wwwroot\App_Code\AdvancedWebPageFunctions.aspx.vb:line 2828 at ASP.advancedwebpage_aspx.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\advancedwebpage.aspx:line 16