Area Navigation Settings Error
When I try to add a link in the list box on this page, and hit ok, I get an error with this stack trace:

Object reference not set to an instance of an object. at Microsoft.SharePoint.Publishing.Navigation.SPNavigationSiteMapNode.UpdateSPNavigationNode(SPNavigationNode node, SPNavigationNode previous, String name, String url, String description, String target, String audience, Boolean forceCreate)
at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AreaNavigationSettingsPage.HandleJavaScriptNavigationNode(Guid objId, Int32 nodeId, String name, String url, String description, NodeTypes nodeType, String target, String audience, SPNavigationNodeCollection collection, Dictionary`2 oldDictionary)
at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AreaNavigationSettingsPage.OKButton_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Needless to say I have no idea what is going on. I thought I would post it here in the odd ball chance that someone had already run into this problem and has a solution. Any ideas are much appreciated.

David
November 25th, 2009 4:59pm

What page are you referring to? Is it a list where you add/insert new items?

You can use "Single Line Text" field or "Hyperlink" field in a list to insert links

Free Windows Admin Tool Kit Click here and download it now
November 26th, 2009 6:28pm

Area Navigation Settings sounds like SharePoint 2003 or WSS 2.0. Is that right? In any case, it's always good to specify your version just in case.

M.
November 27th, 2009 4:29am

Hi.

I get the same problem in SharePoint 2010, using a custom masterpage, when I go in to Navigation settings under site settings, and try to add a link.

Any luck in finding the solution?

Regards.

Free Windows Admin Tool Kit Click here and download it now
August 18th, 2010 10:03am

I found the solution. The problem was that I had named a div in my masterpage to container, like this

<div id="container" class="container">

I renamed it to something else, in my case ContentContainer, and now it works.

August 18th, 2010 12:26pm

I just had the exact same problem in SharePoint 2010 with a custom masterpage. Changing id="container" to a different id solved my problem as well.

Thanks.

Free Windows Admin Tool Kit Click here and download it now
July 14th, 2011 4:37pm

I was banging my head on the wall over this one. This solved in no time flat. THANK YOU for posting your solution!
December 28th, 2012 11:42pm

Hi ,

Getting the same error in logs in Sharepoint 2013 Environment using "Seattle.master" as MasterPage. 

When we go to SiteSettings ->Navigation

For Global Navigation  option->Select Structural Navigation(do not selecting Show subsites,Show pages).

For Current Navigation option->Select Structural Navigation(do not selecting Show subsites,Show pages).

For Structural Navigation: Sorting Option ->Select Sort Manually(do not select Sort pages automatically).

For Structural Navigation: Editing and Sorting Option->Add a Heading or Link under under Global Navigation

Click Ok. 


Anyone Please

Free Windows Admin Tool Kit Click here and download it now
September 11th, 2015 10:00am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics