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>
ActivateOnDefault , , , ActivateOnDefault False
AutoActivateInCentralAdmin , CentralAdmin (WebApp, Site RootWeb).
, WebApp WebApps, FarmLevel, , -, WebApp webapp, Stapling /-, WebApp, .
, staping - .
, : 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.
Source: https://habr.com/ru/post/1719881/More articles:How to debug NHibernate mapping? - debuggingMySQL IF condition - databaseMantis - add version field - fieldPrimitive MailMerge using only limited field names - ms-wordHow to open partial view using jQuery modal popup in asp.net MVC? - jqueryDate format for django SelectDateWidget - djangohow to make a selection based on similar values from multiple columns in sql - sqlИнструмент, помогающий писать формулы Excel и инструкции IF? - syntaxWhy is it allowed to point to constructor parameters? - scalaController actions without CRUD - ruby-on-railsAll Articles