SharePoint Migration – Resolving blank page issue for application pages after migration – The DataSourceID of ‘TopNavigationMenu’ must be the ID of a control of type IHierarchicalDataSource. A control with ID ‘topSiteMap’ could not be found. Application error when access /_layouts/15/viewlsts.aspx
Hi All,
Greetings for the day 🙂 LIFE IS BEAUTIFUL 🙂
SharePoint migration continues. Today new issue and solution.
Background :
- We have migrated our SharePoint 2013 application to SharePoint 2016 using content database attach method
- Its time to access the sites and first page I opened “site content” page (_layouts/viewlsts.aspx), since we are more intrested in content
- “Site Content” page is appearing blank
- So I tried next obvious page – “Settings” (_layouts/settings.aspx), which is also appearing blank
Error / Issue : So we started digging ULS LOGS. In logs found below error
SharePoint Foundation General 8nca Medium Application error when access /_layouts/15/viewlsts.aspx, Error=The DataSourceID of ‘TopNavigationMenu’ must be the ID of a control of type IHierarchicalDataSource. A control with ID ‘topSiteMap’ could not be found.
StackTrace : 7/14/2021 01:00:09.46 w3wp.exe (0x2B84) 0x1238 SharePoint Foundation General 8nca Medium Application error when access /_layouts/15/viewlsts.aspx, Error=The DataSourceID of ‘TopNavigationMenu’ must be the ID of a control of type IHierarchicalDataSource. A control with ID ‘topSiteMap’ could not be found. at System.Web.UI.WebControls.HierarchicalDataBoundControl.GetDataSource() at System.Web.UI.WebControls.HierarchicalDataBoundControl.ConnectToHierarchicalDataSource() at System.Web.UI.WebControls.HierarchicalDataBoundControl.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System…. f258db9f-4d79-d084-886a-e292debb7800
Solution : After bit googling it found that there is an issue of WEB.CONFIG file. By mistake, I have added multiple SAFE CONTROL entries for the same few assemblies. So cleared those. Verified complete WEB.CONFIG file. Refreshed the page and those appearing properly 🙂
So for such kind of errors make sure your web.config file is correct.
hanks for reading 🙂 If its worth at least reading once, kindly please like and share 🙂 SHARING IS CARING 🙂
Enjoy the beautiful life 🙂 Have a FUN 🙂 HAVE A SAFE LIFE 🙂 TAKE CARE 🙂
You must log in to post a comment.