I'm developed a solution for stapling features. in my solution are located two projects, one project contains a module which consist the id features, what I want to attach to the sites collections and id of the feature for a blog site (project with a scope equals farm)
The content of the module:
<FeatureSiteTemplateAssociation Id="98b7ce51-0bf0-4c5a-82c0-e9c9ec10a4c3" TemplateName="SPSMSITEHOST#0" ></FeatureSiteTemplateAssociation>
<FeatureSiteTemplateAssociation Id="98b7ce51-0bf0-4c5a-82c0-e9c9ec10a4c3" TemplateName="SPSPERS#0" ></FeatureSiteTemplateAssociation>
<FeatureSiteTemplateAssociation Id="087e93f1-958f-4ca8-85da-cd5c591b1baa" TemplateName="BLOG#0" ></FeatureSiteTemplateAssociation>
at moment Publishing feature activation for blog, sharepoint throws an exception:
Failed to initialize some site properties for Web at Url:https://mysite/my/person/user1/Blog
Exception occurs when the Publishing feature in a activation process:
web.Features.Add(new Guid("{94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb}")); // publishing feature
Any ideas?