WebFeatureReceiver attached to two features

Dec 8, 2008 at 2:18 PM
Edited Dec 8, 2008 at 4:14 PM
Looking at the 12 hive after deployment, why is the WebFeatureReceiver included in two features in the site definition?

ReceiverAssembly="Contoso.TrainingManagement, Version=, Culture=neutral, PublicKeyToken=9f4da00116c38ec5"

The above feature receiver is attached to both the feature called ContosoTrainingManagementWeb and the SiteProvisioning[guid] feature.

Same question for the SiteFeatureReceiver. This is also attached to ContosoTrainingManagementSiteCollection as well as a feature called SiteProvisioning[guid].

My questions are:

What are these SiteProvisioning[guid] features?
What is the SiteElements[guid] feature?
Why do 2 features share the same classes?

Thanks for your guidance.

Dec 10, 2008 at 10:55 PM
Edited Dec 11, 2008 at 12:29 AM
Only two features (ContosoTrainingManagementWeb  and ContosoTrainingManagementSiteCollection) are actually used. The feature receivers are manually added to the ContosoTrainingManagementWeb and ContosoTrainingManagementSiteCollection as designed.

The SiteProvisioning[guid] and SiteElements[guid] features are automatically created by VseWSS and not used in ContosoTrainingMangement. The feature receivers are automateically added to them. However, since those two features are not used, you can ignore them. We found no way of preventing the SiteProvisioning[guid] and SiteElements[guid] from been generated or deployed.