_layouts/AreaNavigationSettings.aspx is not working after MOSS 2007 to SP2010 migration

תשובה _layouts/AreaNavigationSettings.aspx is not working after MOSS 2007 to SP2010 migration

  • Friday, March 23, 2012 8:20 PM
     
     

    Hello,

    i have just migrated one web aplication to SP2010 using DB attach method. Also we have install German/dutch language pack is installed on MOSS 2007 and SP2010 erver. Issue is when i got the site actions -> Site settings -> navigation I'm getting error that "unexpected error occured". The error message is in german/dutch. Intersetingly, it just happen with the german/dutch language site collcetion. It just works fine with the english language sie collection. Is i take a look at the error logs, Here is what I'm getting it.

    ---------------------------------------------------------------------------------------------

    System.NullReferenceException: Object reference not set to an instance of an object.  
     at Microsoft.SharePoint.Publishing.Navigation.PortalWebSiteMapNode.FetchDynamicItems(PublishingWeb pubWeb, NodeTypes includedTypes, Boolean& websFetched, Boolean& pagesFetched)   
     at Microsoft.SharePoint.Publishing.Navigation.PortalWebSiteMapNode.PopulateNavigationChildrenInner(NodeTypes includedTypes)   
     at Microsoft.SharePoint.Publishing.Navigation.PortalWebSiteMapNode.PopulateNavigationChildren(NodeTypes includedTypes)   
     at Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapNode.GetNavigationChildren(NodeTypes includedTypes, NodeTypes includedHiddenTypes, Boolean trimmingEnabled, OrderingMethod ordering, AutomaticSortingMethod method, Boolean ascending, Int32 lcid)   
     at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AreaNavigationSettingsPage.AddChildrenToControl(String parentId, PortalSiteMapNode node, Int32 depth, Int32 maxDepth)   
     at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AreaNavigationSettingsPage.InitializeNavigationEditSort()   
     at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AreaNavigationSettingsPage.OnLoad(EventArgs e)   
     at System.Web.UI.Control.LoadRecursive()   
     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)----------------------------------------------------------------------------------------------------------- Please help. Thanks.

All Replies

  • Monday, March 26, 2012 9:43 AM
    Moderator
     
      Has Code

    Hi abc67,

    There is a known issue, and here is a script to fix it:

    $site = Get-SPSite("http://WebApplicationURL")
    foreach ($web in $site.AllWebs)
    {
        Write-Output("web:" + $web.ServerRelativeUrl);
        $pageslistid = $web.AllProperties["__PagesListId"]
    
        if ([String]::IsNullOrEmpty($pageslistid))
        {
            Write-Output($web.ServerRelativeUrl +" doesn't have a pages list id set - skipping");
        }
        else
        {
            $pageslistguid = new-object System.Guid($pageslistid)
            $pageslist = $web.Lists[$pageslistguid]
            $pagesurl = $pageslist.RootFolder.Url
            $pb = $web.Properties;
            $pb.Add("__PagesListName", $pagesurl);
            $pb.Update();
            Write-Output($web.ServerRelativeUrl +" set pages list to " + $pagesurl);
        }
    }
    

    For more detailed, please see:
    http://support.microsoft.com/kb/2484317

    Thanks,
    Jinchun Chen


    Jinchun Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff AT microsoft.com(Please replace AT with @)

  • Tuesday, March 27, 2012 7:30 PM
     
     
    Thanks for your reply Jinchun. I already ran this script but this didnt fix the issue. Thanks.
  • Sunday, April 08, 2012 9:52 PM
     
     
    Did anyone if has the resolution for this issue? Thanks.
  • Monday, April 09, 2012 7:22 AM
     
     

    Hi,

    Have run the Visual upgrade after DB based migration?


    Murugesa Pandian.,MCTS|App.Devleopment|Configure

  • Tuesday, April 17, 2012 5:29 PM
     
     Answered
    Thanks all for your help. I got the fix for this issue. Installing August 2011 CU is fixed the issue. Thanks.
    • Marked As Answer by abc67 Tuesday, April 17, 2012 5:29 PM
    •