in

Dot Net Mafia

Group site for developer blogs dealing with (usually) Ionic, .NET, SharePoint, Office 365, Mobile Development, and other Microsoft products, as well as some discussion of general programming related concepts.

Kyle Kelin on .Net

PortalSiteMapProvider was unable to fetch children for node

I ran into a strange error today and thought it needed documenting. I have two WFE in a small farm. One server the navigation was fine but on the other server the navigation had an error. The Nodes where missing except for one code that said ERROR. When you mouse over it you got the followed exception and stack trace:

PortalSiteMapProvider was unable to fetch children for node at URL: /, message: Object reference not set to an instance of an object., stack trace: at Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapNode.GetNavigationChildren(NodeTypes includedTypes, NodeTypes includedHiddenTypes, OrderingMethod ordering, AutomaticSortingMethod method, Boolean ascending, Int32 lcid) at Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapNode.GetNavigationChildren(NodeTypes includedHiddenTypes) at Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider.GetChildNodes(PortalSiteMapNode node, NodeTypes includedHiddenTypes)

 

I fixed this by adding the second server to the Alternative Access Mappings (the first one was already in there). I apologize but I don't know the details of why this fixed the error. If I get time I will give into the details of the why.

Comments

 

musch said:

Hey Kyle,

Did you ever find a solution to this problem? I’m getting the same error message in the log files(12). I’m rendering a sitemap webpart using the same provider. I’m transforming the xml via xslt, but when I flush my cache (iisreset) I only get the top-level of each site and the exception in the log files

I got as far as finding that when my webpart dll, is deployed to the GAC there is no issue, but when it is deployed to the BIN folder this exception is raised (due to the customer it is not possiple to deploy dll’s to the GAC in production).

June 17, 2009 4:55 AM
 

Garen15 said:

Hi Kyle,

were you ever able to figure out this issue?

i am getting the same error message and also i am missing the top navigation bar on my pages :(

any help will be appreciated.

April 5, 2012 11:23 AM

Leave a Comment

(required)  
(optional)
(required)  
Add

About KyleKelin

Kyle Kelin has been implementing software in the Microsoft space for the past 6 years mainly as a consultant. His interests are SharePoint, .NET, JQuery, and Silverlight.
2018 dotnetmafia.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems