SPC012122: Deploy the 'ReceiverAssembly' of a Feature to GAC

If a Feature references an assembly in attribute 'ReceiverAssembly' the assembly must be deployed to GAC. Otherwise the assembly could not be loaded during feature activation.

TypeName: DeployFeatureReceiverAssemblyToGAC
CheckId: SPC012122
Severity: Error
Type: Feature
Resolution

Change the attribute 'DeploymentTargetType' of the assembly in solutions manifest.xml to 'GlobalAssemblyCache'. MSDN: 'The assembly that contains a Feature receiver must be located in the global assembly cache (GAC).'

Links

comments powered by Disqus