Questions tagged [feature-activation]

A feature-activation is a process which makes a feature active programatically, using power shell or through a web interface. A feature needs to be active in order to be used.

Filter by
Sorted by
Tagged with
1
vote
3answers
59 views

“Master” feature?

I'm building a complex application that is composed by multiples features of different kind. I want to avoid having all features individually able to be activated from the site admin page. What my ...
1
vote
3answers
750 views

How to activate feature in a custom site

I have created a publishing web template. Now I need to activate a feature once the site is provisioned. In order to achieve this, I've created an event receiver with something like this: public ...
1
vote
2answers
2k views

Web-scoped Feature falsely activated during Visual Studio deployment

In Visual Studio I have a solution containing two features with their Scope set to "Web". These two features work as expected but the only thing that is going "wrong" is that they are activated when I ...
1
vote
1answer
197 views

Feature Not Activating

I have an Empty SharePoint solution where I added an EventReceiver that attempts to create a new Diagnostic category to my SharePoint farm. To test I am setting a breakpoint on the FeatureActivated ...
1
vote
2answers
194 views

Is it possible to deploy SharePoint solution (WSPs) via feature activation?

This seems to me an uphill task in SharePoint but is it possible to deploy the WSPs via SharePoint features? For instance, if we activate a certain feature then some specific SharePoint solutions (...
1
vote
2answers
1k views

How to add a picture library to a communication site

I cant find the picture library add-in for a modern communication site. Is there any feature i need to enable?
1
vote
1answer
75 views

Programatically identifing feature for activation

I have a requirement where a custom action is only added to the root site of the site collection. So planning to add two features one Site scoped and the other Web scoped. In the event receiver of a ...
1
vote
1answer
735 views

Feature Event Receiver not picking up latest code until second activation

I have a Feature with an event receiver (written in c#), which for the sake of brevity creates a list which is a data store for a form on a custom web part. I have ps1 scripts which retract and deploy ...
1
vote
1answer
2k views

Hide a feature in Site Collection Administration => Features area

I have a feature with webparts that needs to be activated using powershell. I need a way to either hide the feature on the Site Collection Administration => Features (under Site Settings) or to ...
1
vote
2answers
806 views

Can i use SPLongOperation in FeatureActivating?

I have a feature that upgrades and updates an existing site to a new and improved version of that site. One of the tasks of the feature is to upgrade existing data in the site. For simple test/dev ...
1
vote
2answers
131 views

Add custom sharepoint feature to solution

i customized the OSearchBasicFeature inside 14/template/features/ to have a pretty search-box. Since i want to customize my SharePoint only through deploying a package i was wondering how i'm able to ...
1
vote
2answers
359 views

What are some of the best practices around feature activation and their dependencies

Specifically what are the do's and dont's for installing, activating, deactivating and uninstalling a feature. What are the problem areas of working with features and how do you handle.
1
vote
2answers
149 views

Backup a file while custom feature activated?

We have a custom application page "custom.aspx" on the Layout folder, would like to rename the original file "custom.aspx" to "custom_bak.aspx" before the updated/modified custom application page "...
1
vote
1answer
1k views

How to deploy a farm feature?

I need to create and deploy a farm feature to my SharePoint 2010 install. I have an event receiver that handles the ListAdded event. How do I deploy this to SharePoint as a farm feature? With site ...
1
vote
1answer
248 views

WebDeleting Event for New Sites created ? ?

I am using the WebDeleting event which is based on features. Just activate the feature, and whenever a web is getting deleted, the event handler throws a message saying "Web can't be deleted". ...
1
vote
1answer
21 views

Features activated for a page

Are there any features activated or deactivated for different pages like Wiki Page, SharePoint Page or Web Part page in SharePoint? Or the features are relevant only for the sites and not pages?
1
vote
1answer
1k views

How do I determine a dependent hidden Site Collection feature?

When attempting to activate the Content Organizer feature for a site collection (Site Settings > Manage Site Features > Content Organizer > Activate) an error indicating that this feature is ...
1
vote
2answers
7k views

Reactivating feature with powershell - disable enable feature if it's active

$snapin = Get-PSSnapin | Where-Object { $_.Name -eq "Microsoft.SharePoint.Powershell" } #This script enables a feature on every site collection on a given web app if ($snapin -eq $null) { Add-...
1
vote
1answer
69 views

Which is good practice to not activate the feature by default?

I have read about:- Active Deployment Configuration : No Activation Feature --> Activate on Default : False What is the difference?
1
vote
2answers
423 views

What user data or customizations will I lose if I deactivate and reactivate a site collection feature

I am having problems with my embedded SSRS reports (print button missing) and it claims that my Report Viewer web part is not configured correctly, or something along those lines. I was thinking of ...
1
vote
1answer
519 views

How do you indicate a Web Application vs Site Collection in for the -url parameter in PowerShell?

When I run the code script below: enable-spfeature "MyFeature" –url "http://myportal:5555" I get the error: This feature is not a farm level feature and is not found in a Site level defined by ...
1
vote
1answer
718 views

Activate Content Organizer feature from code

how to activate content organizer feature from c# code or by powershell script. I want to activate this feature on my subsite from my code ?
1
vote
1answer
718 views

Site-level fields created by the Community Site features and its dependencies must not be removed

I get this error: Site-level fields created by the Community Site features and its dependencies must not be removed. when trying to create a Community Site or Active the Community Site Feature, ...
1
vote
1answer
1k views

Enable-SPFeature doesn't work, but activation via Site Settings does. Why?

I have a weird problem... I'm trying to deploy a sharepoint solution in production. This project works fine in the test environment, but in production trying to enable the feature returns this error: ...
1
vote
1answer
2k views

Can't find WebApplication scoped feature

I've deployed a wsp that has 2 features. The one scoped at a web level is listed where I'd expect to see it and activates without a problem. The feature scoped at a web application can't be found ...
1
vote
4answers
4k views

Error while activating custom feature

I have a wsp package installed as farm solution. package has event reciever on activating feature. When I go to Site Collection Features and activate this feature i get an error Error File ...
1
vote
2answers
603 views

waiting for a feature to be activated when the SPWeb is created completly

I have created a web scoped feature. In FeatureActivated method I try to GetLimitedWebPartManager from default.aspx file. But the web has not been created yet and default.aspx does not exists.
1
vote
2answers
7k views

Feature not activated by default

I have a SP2010 wsp that contains multiple features all are scoped "web" all was working fine. But suddenly one of the feature stopped activating by default on deployment though all other features are ...
1
vote
3answers
2k views

Problem Setting Item Level Permissions Dynamically

I am working with SharePoint 2010 feature receivers. On feature activation I am creating multiple web part pages in library "Site Pages". I want to set individual permissions for each page, but I want ...
1
vote
2answers
2k views

Problem renaming a file in document library programmatically

I want to use a FeatureEventReceiver to rename Home.aspx -> Old_Home.aspx. When i activate the feature rather than Home.aspx getting renamed it gets deleted/disappears (i.e. missing when i refresh ...
1
vote
1answer
2k views

Can't Activate Office SharePoint Server Publishing Infrastructure

When I try to activate the Publishing Infrastructure at the site collection level I getthe following error. The Office SharePoint Server Standard Web application features feature must be ...
1
vote
3answers
2k views

SharePoint 2010: How to control order in which web features are applied

We have a site defined in onet.xml. The site has 5 features: some standard, some custom. One of the standard ones is the team site. On activation of our feature we would link to copy files into the ...
1
vote
1answer
41 views

Activate SP Server Publishing Infrastructure on Online Publishing Site -modern XP

I have a problem when trying to enable SharePoint Server Publishing Infrastructure site coll feature on one of my site... I know this has been discussed many times, but even when triying every ...
1
vote
2answers
865 views

Error while activating community site feature “Cannot add the file /sites/mysitename/SitePages/Community Home.aspx because it is a draft item”

First when I tried to activate community site feature, it gave me the below error: Site The Site scoped feature being activated has a dependency on hidden Site Collection scoped feature '...
1
vote
1answer
962 views

SharePoint Online Custom Features

Is there any way to create custom features that can be deployed and activated/deactivated at the site level? From re-searching it I don't think it is possible, but thought I should ask in here just ...
1
vote
1answer
445 views

Cannot set unknown member 'LookupSPListItem.ItemId'. Error on Workflow Feature Activation

I have a SP 2013 workflow feature that needs activation, when I perform the stsadm command and get the below mentioned error: Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML ...
1
vote
1answer
91 views

Problems breaking inheritance and giving permission to manager

By using feature stapling we activate a feature that creates a custom list on a users profile in my site web-application each time a new my site (site collection) is created for a user. We want to ...
1
vote
1answer
727 views

Edit person.aspx?

We have more than 1000 user profiles that need a customized person.aspx. We need to make quite big changes to person.aspx. What is best practice here ? Do we edit person.aspx via SharePoint designer ...
1
vote
1answer
1k views

SP2013 Cannot create “_catalogs/masterpage”

I have created in my VS2013 solution a Masterpage module. The problem is that during feature activation I encounter a message 'Cannot create "_catalogs/masterpage', as if the feature was not being ...
1
vote
1answer
68 views

Site Feature needs to be re-enabled after creation from template?

I have a Site Template which includes the SP List Item Copy Feature. This Feature was enabled on the site when I created the template. My issue is that whenever I create a new site with this template,...
1
vote
1answer
1k views

Programatically publishing Content Type in Content type Hub

I have a custom content type which I am deploying to a Site collection in which content type hub is configured. To use the content types in different site collection after the content type is deployed ...
1
vote
1answer
181 views

FeatureActivated() not binding two SPEventReceiverDefinitions

I have a feature which I have placed in the onet.xml in to make it active whenever the site collection is created. The feature contains two event receiver definitions for permission groups. One is for ...
1
vote
1answer
1k views

How can I find the Feature Activation Dependency Powershell

I am running a recursive function that activates many features in powershell however I need to find the child feature a feature is dependent on before it is activated. How can I do this in powershell. ...
1
vote
1answer
476 views

Sharepoint 2010 failed to apply web.config modifications to Web Application

I have a SharePoint solution deployed into a specific web application on the production SharePoint site. When I try to enable the feature from the site features in Site Settings I get an error saying ...
1
vote
1answer
166 views

Access exceptions when trying to add a content type to list

In the following method, 'list' is simply an SPList ("Documents"). I'm attempting to add ContentTypes to the list and then update it. This code is found in the FeatureActivated event of an event ...
1
vote
2answers
2k views

how to remove a published content type from subscribed site collections

I have a small Visual Studio 2010 project with one farm level feature that I deploy to a site collection which is configured as my content type hub. The FeatureActivated event adds a site column and ...
1
vote
1answer
1k views

removing a sharepoint solution duplicates entry in web.config?

My intentions is to be able to add and remove web.config changes when a solution is installed or uninstalled. The code below and the powershell below works ALMOST as expected. When I add sp solution,...
1
vote
1answer
151 views

What to do on feature deletion/deactivation

as I am trying to wrap my head around silverlight and sharepoint there's one thing I find most irritating: Provisioned xap-Files and/or web-Parts remain fully active upon deactivation/uninstallation ...
1
vote
1answer
818 views

Sharepoint 2010, templates and Features

I have been trying to create site templates from a local SP2010 server that can be used by a client for some custom content. The problem is all the "the site template requires that the feature be ...
1
vote
1answer
3k views

Provision Web Part Page from Module with SetupPath?

Is it possible to provision a Web Part Page using a Module element with a SetupPath specified, rather than a Path specified? For example, if I wanted to create a module to provision a page from: ...