SPC016101: Define ControlAssembly and ControlClass in DelegateControl

When implementing a server control (DelegateControl), use both the ControlAssembly and ControlClass attributes.

TypeName: DefineControlAssemblyAndClass
CheckId: SPC016101
Severity: CriticalError
Type: DelegateControlDefinition
Resolution

Define the both attributes ControlAssembly and ControlClass in conjunction. See sample below:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   <Control  
      Id="AdditionalPageHead"  
      Sequence="1000"
      ControlAssembly="EcmaScriptDelegate, Version=1.0.0.0, Culture=neutral, PublicKeyToken=publickeytoken"  
      ControlClass="EcmaScriptDelegate.EcmaScriptDelegateControl">
</Elements>

comments powered by Disqus