Server Error in '/' Application.

'table' argument cannot be null.
Parameter name: table

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: 'table' argument cannot be null.
Parameter name: table

Source Error:


Line 49: 		{
Line 50: 			DataTable dtCategories = new DataTable();
Line 51: 			dtCategories.Merge(wheDataAccess.GetCategoriesFromParent(parentWheCategoryId));
Line 52: 			if (parentWheCategoryId == "3")
Line 53: 			{

Source File: d:\wwwroot\WorldHeritage\Pages.aspx    Line: 51

Stack Trace:


[ArgumentNullException: 'table' argument cannot be null.
Parameter name: table]
   System.Data.DataTable.Merge(DataTable table, Boolean preserveChanges, MissingSchemaAction missingSchemaAction) +217
   ASP.pages_aspx.Page_Load(Object sender, EventArgs e) in d:\wwwroot\WorldHeritage\Pages.aspx:51
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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