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.

learn more… | top users | synonyms

1
vote
4answers
2k views

How to enable site collection feature by default when deploying a visual webpart from visual studio?

I am making a visual web part in SP 2010 using visual studio 2010. I want it so that when I add and deploy my wsp file, it should by default keep the site collection feature activated for the web ...
4
votes
1answer
408 views

Farm scope Event Receiver

For some security reasons on one of our farm level solutions, we need to limit some actions using Event Receiver-FileMoving event. However, as known, event receivers can be deployed only by Site or ...
7
votes
3answers
4k views

How do you “stop” activating a feature within the feature receiver?

I have a feature receiver with some long running code, hence I use SPLongOperation and delegate for better visual appearance. Basically my feature receiver looks like so: public override void ...
3
votes
1answer
600 views

Is SPFeatureCollection.Add method asynchronous?

I have a quite complex application that is split into several features. In order to hide this complexity, I set the IsHidden property of the feature to true, then have created a "master" feature. ...
2
votes
3answers
631 views

Set the JSLink property for all list forms in FeatureActivated

Is it possible to update the SPForm.JSLink property for the forms (Display, New, Edit) of an existing list in the when a feature is activated? I have tried the code below, but it seems that the ...
2
votes
3answers
6k views

Activating and deactivating publishing feature breaks SP2010 wikis?

I have created an Enterprise Wiki site on SharePoint 2010. I have added some pages to the wiki - that worked fine. By default, it seems that an Enterprise Wiki has publishing turned off. If I ...
4
votes
4answers
13k views

How to activate feature using powershell script?

I need to activate specific feature to all site collection which is inside the particular web application using powershell script?
4
votes
1answer
2k views

Activate a feature in feature installed

I have a feature for deploying masterpages that I am trying to activate upon install(deploy). The following snippets of code are in the EventReceiver.cs. I am getting a null when attempting to ...
4
votes
6answers
6k views

Identify moss features from GUID

We are using a site definition and it has 3 feature dependencies that we are struggling to identify: <ActivationDependency FeatureId="7EDD3C9C-8AC6-4ab5-A209-30B5DC422464" /> ...
2
votes
2answers
825 views

Error activating feature

I have created a solution package for Sharepoint 2007 and have installed and deployed it on a development server. However, when I go to activate it through Site Features, I'm given a lovely page of ...
2
votes
2answers
1k views

Create Site Column (lookup type)

Is there any solid (proven) method of creating Site columns (lookups) where list GUID is not known? I think this is where feature activation kicks in; getting the lookup list by its name and then ...
1
vote
1answer
2k views

PowerShell code to add/remove, install/uninstall and enable/deactivate feature at Web, Site Collection, Web Application and Farm scope

Please can you give me the best practice PowerShell code to:- A. Add, install and enable feature at -Web -Site Collection -Web Application -Farm scope B. Deactivate, Uninstall and Remove ...
1
vote
1answer
195 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
2answers
4k 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 ...
0
votes
4answers
2k views

Can't deploy custom content type

I have an content type in my feature, and sudenly when I tried to debug my feature, i got the following error: Error occurred in deployment step 'Activate Features': The content type with Id ...
0
votes
1answer
799 views

Access denied when adding web application features programmatically

My goal is to programmatically activate a Web Application scoped feature. I'm running this code from a feature receiver of a Web scoped feature. I'm logged in as a Farm Administrator. My app pool ...