This project is read-only.
1

Closed

WebApplication feature is not activated

description

If WebApplication is specified as a scope of the feature - then this feature will not be activated during installtion. As I have found in Open method of InstallProcessControl class it adds activation command only if scope is Farm or Site
    protected internal override void Open(InstallOptions options)
    {
      // ...
      SPFeatureScope featureScope = InstallConfiguration.FeatureScope;
      switch (Form.Operation)
      {
          case InstallOperation.Install:
          // ...
          if (featureScope == SPFeatureScope.Farm)
          {
            executeCommands.Add(new ActivateFarmFeatureCommand(this));
          }
          else if (featureScope == SPFeatureScope.Site)
          {
            // ...
            executeCommands.Add(new ActivateSiteCollectionFeatureCommand(this, siteCollectionLocs));
          }
          // NO BRANCH FOR WEB APP!
         // ...
Is it a bug? Docummentation says that in config I can specify feature to be activated during installation, but actually it doesn't activate a feature if it is Web App feature.
In feature's manifest I have specified ActivateOnDefault="FALSE" so the feature is not activated during solution deployment.
Closed Feb 25, 2016 at 5:44 PM by PerrySharePoint
Appears outdated

comments

PerrySharePoint wrote Feb 3, 2016 at 9:23 PM

I think this is a bug that was fixed in a later release?

(Note: When reporting an issue with any software, it is always a good idea to explicitly state what version you are using.)

wrote Feb 25, 2016 at 5:44 PM