Saturday, June 2, 2012

Site features causing issues - I found a resolution


I created site template by saving it from a minor customized blog site. I exported it in VS2010 and created a custom web template. Im seeing few site feature references along with some web features in its onet.xml.


After making the required changes, I

  1. deployed my solution in one of my web apps of my farm
  2. created a site collection from BLANK site template in that web app.
  3. activated my web template related features in my site collection
  4. Once I tried to create a sub site based on my Custom Web Tempplate, Im seeing the errors like "<GUID> feature not found"



The issue was due to the need of a manual activation of features referred in the Site Feature section of Web Template Onet.XML. All the features refered in Web Features section of  web template will get activated autoamtically when a site created using that template but the site features have to activated manually.


I resolved this issue by 


Removing the unwanted feature references from the Site Features section of Web Template.
Activating the required site features in a site collection feature prior to the web template based site creation.

No comments:

Post a Comment