Error Tab in Navigation
None of my navigation was showing up in my SharePoint site. In fact, there was just a single tab with the text "Error" The tooltip in the HTML showed an exception with the follwoing text:
I then ran the stsadm command: stsadm -o enumsites -url http://localhost:2221 but received an error.
The root of the errors was in my alternate access mappings. localhost is a web front end server, but the central admin runs on a different machine. I added my localhost (using the server name) as an internal URL that mapped to the URL of the machine running central admin. Problem solved.
An error occured while rendering navigation for requested URL: /.
Exception 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 then ran the stsadm command: stsadm -o enumsites -url http://localhost:2221 but received an error.
The root of the errors was in my alternate access mappings. localhost is a web front end server, but the central admin runs on a different machine. I added my localhost (using the server name) as an internal URL that mapped to the URL of the machine running central admin. Problem solved.
Labels: sharepoint
2 Comments:
how to add ur local host as an internal url mapping to the original location?
Actually i have the same issue but the site is on a virtual machine located on my own machine. i receive this error when i first create the site...and when i click on the ERROR, all the links are shown correctly. this problem is there only when the site is loaded first time after creation.
Ria,
Alternate Access Mappings are in the Operations tab of Central Administration. From there, you can click the option to add internal URL.
Post a Comment
Subscribe to Post Comments [Atom]
<< Home