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 πŸ™‚

Prasham Sabadra

LIFE IS VERY BEAUTIFUL :) ENJOY THE WHOLE JOURNEY :) Founder of Knowledge Junction and live-beautiful-life.com, Author, Learner, Passionate Techie, avid reader. Certified Professional Workshop Facilitator / Public Speaker. Scrum Foundation Professional certificated. Motivational, Behavioral , Technical speaker. Speaks in various events including SharePoint Saturdays, Boot camps, Collages / Schools, local chapter. Can reach me for Microsoft 365, Azure, DevOps, SharePoint, Teams, Power Platform, JavaScript.

You may also like...

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: