_layouts/AreaNavigationSettings.aspx is not working after MOSS 2007 to SP2010 migration
-
2012年3月23日 20:20
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.
すべての返信
-
2012年3月26日 9:43モデレータ
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/2484317Thanks,
Jinchun ChenJinchun 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 @) -
2012年3月27日 19:30Thanks for your reply Jinchun. I already ran this script but this didnt fix the issue. Thanks.
-
2012年4月8日 21:52Did anyone if has the resolution for this issue? Thanks.
-
2012年4月9日 7:22
Hi,
Have run the Visual upgrade after DB based migration?
Murugesa Pandian.,MCTS|App.Devleopment|Configure
-
2012年4月17日 17:29
Thanks all for your help. I got the fix for this issue. Installing August 2011 CU is fixed the issue. Thanks.- 回答としてマーク abc67 2012年4月17日 17:29

