Question

I'm trying to deploy a delegate control in the same feature as some custom actions. All the actions are deployed and work correctly. However, the control is not being deployed. If I create a new project with only the delegate control, this works and is deployed right. Is there something I'm missing when mixing controls and custom actions in the same feature?

Was it helpful?

Solution 2

After a long time, I found that the error was that the manifest file --that ussually is generated automatically by Visual Studio-- was edited manualy by the person who created the project. So, the new files I added into the solution were excluded from it. I changed back the configuration to maintain the file automatically again and it worked.

OTHER TIPS

Should work just fine, here is an example from one of our products.

Feature.xml

<Feature Id="BD315B60-A1CD-4e64-8537-E4EE3FBFFAB3"
         Title="$Resources:MuhimbiAuditProvisioningResources,Feature_Title_Farm;"
         Description="$Resources:MuhimbiAuditProvisioningResources,Feature_Description_Farm;"
         ImageUrl="Muhimbi.SharePointAudit/muhimbi_feature.gif"
         Version="1.0.2.2"
         Scope="Farm"
         Hidden="FALSE"
         ReceiverAssembly="Muhimbi.SharePoint.Audit, Version=1.0.2.2, Culture=neutral, PublicKeyToken=c9db4759c9eaad12"
         ReceiverClass="Muhimbi.SharePoint.Audit.FarmAuditing.FeatureReceiver"
         RequireResources = "FALSE"
         xmlns="http://schemas.microsoft.com/sharepoint/">

    <ElementManifests>
      <ElementManifest Location="TemplateAssocations\GlobalSiteTemplateStaple.xml" />
      <ElementManifest Location="CustomActions\ElementsShared.xml" />
      <ElementManifest Location="CustomActions\Elements.xml" />
    </ElementManifests>
</Feature>

ElementsShared.xml

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">    
  <!-- Delegate control that is included on every page for tracking audits -->
  <Control Id="AdditionalPageHead"
           Sequence="50"
           ControlSrc="~/_ControlTemplates/Muhimbi.SharePointAudit/AuditTracker.ascx"
            />
</Elements>
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top