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 Microsoft 365 Junction, Speaker, Author, Learner, Developer, Passionate Techie. Certified Professional Workshop Facilitator / Public Speaker. Believe in knowledge sharing. Around 20+ years of total IT experience and 17+ years of experience in SharePoint and Microsoft 365 services Please feel free me to contact for any SharePoint / Microsoft 365 queries. I am also very much interested in behavioral (life changing) sessions like motivational speeches, Success, Goal Setting, About Life, How to live Life etc. My book - Microsoft 365 Power Shell hand book for Administrators and Beginners and 100 Power Shell Interview Questions - https://www.amazon.in/Microsoft-Administrators-Beginners-Interview-Questions/dp/9394901639/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1679029081&sr=8-11

You may also like...

Leave a Reply

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