Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Error loading navigation: The Managed Navigation term set is improperly attached to the site.

$
0
0

Hi all,

I'm experiencing this problem with creating Managed Navigation Term Set programatically.

Problem is, sometimes it works, most of the time it doesn't. It gives me the error in the above title. I am following these instructions: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.navigation.navigationterm.aspx

I took a look at the ULS logs but they just repeated the error mentioned above. And something like TermSet is not attached to SPWeb.

I am using SharePoint 2013 / Visual Studio 2012. I deploy the above code using FeatureReceiver with Site scope. Something like:

FeatureActivated(Properties)

{
 SPSite site = properties.Feature.Parent as SPSite;
 
 CreateSampleNavTermSet(new TaxonomySession(site), site.OpenWeb());

}

Does anyone else experienced this problem before?

Thanks!



Viewing all articles
Browse latest Browse all 25064

Trending Articles