Web application feature not activated by default

All I'm trying to do is deploy a simple web application function that activates automatically when it is installed. To make sure that none of our corporate settings does anything strange, I even created a simple test web application function and built it using the WSP constructor, but still get the same results - the function is installed normally, but NOT activated by default. I also set the "AutoActivateInCentralAdmin" parameter to true, but it does nothing. Is this something that can be done, or am I wasting my time? Here is my XML function:

<?xml version="1.0" encoding="utf-8" ?>
<Feature Id="21003D96-D88E-42ed-AF97-2C4C22BFA3CF"
      Title="Test Web Application Feature"
      Description="I should be activated by default."
      Version="1.0.0.0"
      Scope="WebApplication"
      Hidden="false"
      xmlns="http://schemas.microsoft.com/sharepoint/"
      ActivateOnDefault="true"
      AutoActivateInCentralAdmin="true"
      AlwaysForceInstall="true">
</Feature>
+3
source share
3 answers

ActivateOnDefault , , , ActivateOnDefault False

AutoActivateInCentralAdmin , CentralAdmin (WebApp, Site RootWeb).

, WebApp WebApps, FarmLevel, , -, WebApp webapp, Stapling /-, WebApp, .

+4

, staping - .

+1

, : http://msdn.microsoft.com/en-us/library/ms436075.aspx

ActivateOnDefault   Boolean. , -; FALSE, . TRUE. ActivateOnDefault (Site) Web site (Web). , Farm-scoped Feature , -, Web- .

AutoActivateInCentralAdmin  Optional Boolean. TRUE if the feature is activated by default on an administrative website, in a site collection, or in a web application. By default, this attribute is FALSE. The AutoActivateInCentralAdmin attribute does not apply to farm scope functions.

+1
source

Source: https://habr.com/ru/post/1719881/


All Articles