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!