SPC012113: Define required attributes for Feature receiver

Attributes 'ReceiverAssembly' and 'ReceiverClass' must be defined in conjunction.

TypeName: DefineAllRequiredAttributesForFeatureReceiver
CheckId: SPC012113
Severity: CriticalError
Type: Feature
Resolution

Add attributes 'ReceiverAssembly' and 'ReceiverClass' to the Feature. Both attributes must be defined in conjunction.

if the attributes are not defined correctly the Feature may work unexpectedly.

See sample below:

<Feature xmlns="http://schemas.microsoft.com/sharepoint/"
   Id="39FA56C4-7A47-44F5-83CC-01B5E777F436"  
   Title="Feature with Receiver Callback"  
   Scope="Web"  
   ReceiverAssembly="SimpleReceiver, Version=1.0.0.0, Culture=neutral, PublicKeyToken=207e2bf263eeeff6"  
   ReceiverClass="MS.Samples.SharePoint.SimpleProvisioner"
>
   ...
</Feature>

comments powered by Disqus