WebFeatureReceiver attached to two features

Dec 8, 2008 at 1:18 PM
Edited Dec 8, 2008 at 3: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=2.0.0.0, Culture=neutral, PublicKeyToken=9f4da00116c38ec5"
ReceiverClass="Contoso.TrainingManagement.WebFeatureReceiver"


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 9:55 PM
Edited Dec 10, 2008 at 11:29 PM
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.

Hanz