in

Corey Roth and Friends Blogs

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

June 2008 - Posts

  • 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.

  • Printing a List

    Have you ever tried to print a List in SharePoint. Well first you have to export it to Excel then print it. Yuck! Well there is a better way. Check out the link below.

    http://www.sharepoint-tips.com/2007/01/how-to-add-print-list-option-to-list.html

     

    This is basically a feature that installs a Print List link in the Action menu. The List then opens in a print preview mode. I do wish the author would have packaged it up as a wsp but the steps are pretty clear. In fact I've been doing some developer training on deployment lately and I might use this article to show what a wsp actually does when installing a feature.

     

    Kyle

2019.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems