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

0
votes
1answer
356 views

Disable auto activate feature

I have a really strange behaviour, I'm working with SharePoint 2007 and I have a feature web application scoped, and i don't want it automatically being activated on deploying the solution, but it ...
0
votes
2answers
42 views

Can we deploy a custom webpart on a standalone Sharepoint server?

I installed sharepoint 2013 foundation and during the installation I chose standalone mode.So when I explored the newly created site features,there were only few features.Question is can I now develop ...
1
vote
1answer
1k views

How can I activate a wsp solution uploaded to solution gallery via code in SharePoint 2013

I'm creating a site definition which provisions a subsite based to a webtemplate(wsp) file. This webtemplate file is packed in a feature containing a module.When the feature is activated the wsp file ...
0
votes
0answers
17 views

Feature Stapler not working

I have created some branding for the SharePoint 2013 MySites with a feature stapler so that it can also add the branding to the Blog, Apps and Tasks but it's not working. The branding applies to the ...
0
votes
0answers
11 views

Change Home Page on activating feature

I'm developing a SharePoint 2013 application (SharePoint-Hosted). I have a lot of Lists that an "Administrator" user can modify. I would modify Site Home Page on activating feature, with links of ...
0
votes
1answer
19 views

Feature Activation User

Which user context is used in feature activation receiver? Is it current user (when activating from WebUI)? I have to call a service in feature activation receiver and I have to know which user ...
0
votes
0answers
12 views

Web Application level feature is reactivated during re installation of solution

I have Web Application level feature and its getting reactivated during deployment. Below are my feature properties, Activate On Defult: True Always Force Install: False whatever the value I have ...
0
votes
0answers
17 views

Deactivate site feature on a site collection change multiple site collections

On our SharePoint 2013 on-premise farm, we have several site collections built based on same backup. They have exactly the same feature, structure and configuration but with different names. Our ...
1
vote
1answer
37 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 ...
2
votes
1answer
34 views

Specify custom parameters in WSP deploy / feature activation?

I have a Feature Receiver where I access the Term Store to get / set something. My problem is, the code needs to connect to 'specific' term store.. but what if the Term store name changes when I ...
0
votes
1answer
52 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 ...
0
votes
1answer
34 views

How Can I Output Enterprise Features List To CSV?

I am trying to output to a CSV file the list of activate enterprise features in our sites with DisplayName, GUID and Scope as the content that is written to the CSV file. I have the following ...
0
votes
0answers
7 views

Strange ListItemCollection behavior

I made a feature with an ItemAdded eventreceiver. The feature creates two lists and adds a list item to one of the lists. After I activated the feature I looked at the lists and the one list that ...
0
votes
4answers
8k views

Failed to load receiver assembly when activate feature

I have a problem when activating a Site scoped feature. Every time I try to activate the solution with STSADM or Powershell I get this error: C:\Program Files\Common Files\Microsoft Shared\Web Server ...
0
votes
1answer
528 views

Failed with 0x80004005 to create the view query or web parts for web

Feature 1 creates Site Columns Feature 2 creates Content Type and adds the site columns created by feature1 Feature 3 creates a List definition for mylist I have two Web tempaltes. I have added ...
1
vote
2answers
1k 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
38 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 ...
0
votes
0answers
14 views

(Sharepoint 2010) How do I activate Approval, Collect Feedback, and Collect Signatures workflows for a site collection?

All workflows are active except for these 3. Everything I've read says to go to Site Collection Features and activate Workflows. I've done this, but these three workflows are still inactive. Is ...
0
votes
0answers
103 views

Reporting Server Integration Feature will not be activated

I have very odd problem with Reporting Server Integration Feature. I have developed SharePoint Web Template. I have used Windows Server 2008R2 for developing and I have tested that my solution works ...
0
votes
0answers
43 views

Webpart changes not getting reflected

I have implemented code changes in already existing web part and deployed it to the site. It works fine if I add it into a new page. Site pages that already have this web-part do not reflect any ...
0
votes
1answer
50 views

Feature error when deploying a master page with visual studio 2013

I am new in working with VS13 to edit master pages, when I try to deploy it gives an error: Error 30 Error occurred in deployment step 'Activate Features': Feature with Id ...
0
votes
1answer
114 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) { ...
0
votes
0answers
36 views

webprovisioned activatedfeature save conflict

I am having an issue when creating a WebProvisioned eventreceiver that activates a feature. However I am getting the "Save conflict - Your changes conflict with those made concurrently by another ...
1
vote
2answers
126 views

Sharepoint is keeping a record of un-installed solutions

Today i ran a powershell script that lists all the features on my Sharepoint 2013 system along with their 'scope' and 'GUID'. I noticed while looking at the list that it also includes features that ...
2
votes
2answers
366 views

Activate webfeatures on all SharePoint online webs

I want to activate a webfeature on all subsites of a sitecollection in Office 365 / SharePoint online. I thought i can do the actions in a SiteCollection Feature, but that's throwing a timeout error. ...
1
vote
1answer
88 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 ...
0
votes
1answer
2k views

How do I configure styles and layout of a Summary Link Web Part using code?

I have successfully added a Summary Link Web Part as a feature and want to configure the styles and layout of it, including: The default style for new links The group header style The number of ...
0
votes
0answers
25 views

put all list instances in the same feature or each feature contains one list instance

I have in my project 9 custom lists. I put each list definition in a feature. Is it better to put each list instance in a feature ( the feature of list instance has as dependency the feature of the ...
3
votes
2answers
6k views

Getting SPWeb in feature receiver

While testing my solution I receive an error on Feature activation: Detected use of SPRequest for previously closed SPWeb object. Please close SPWeb objects when you are done with all objects ...
1
vote
1answer
480 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: ...
0
votes
1answer
62 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
0answers
49 views

Call FeatureInstalled method on feature activation and after FeatureActivated

I like to call FeatureInstalled method of feature after the FeatureActivated method. How can I call FeatureActivated method from FeatureInstalled? I have a module in feature and it will adding the ...
1
vote
4answers
2k 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
523 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 ...
0
votes
1answer
67 views

Edit default Pagelayout on feature activation

My site is in SharePoint 2010. I want to edit the content of PageFromDocLayout.aspx default page layout on feature activation. My feature is on site collection level. I want to change the ...
0
votes
1answer
30 views

Inheritance of Content Types in a Single Feature

I am having the same issue as seen in http://stackoverflow.com/q/9699451/240372 yet the solution does not work for me. The ID's for my Content Types are the following A ...
1
vote
1answer
76 views

Problem to modify web.config in runtime

I'm trying to modify the web.config file when the feature is activated with the code below: public override void FeatureActivated(SPFeatureReceiverProperties properties) { SPWebApplication webApp ...
1
vote
2answers
989 views

How do I fix the error “Expression must evaluate to a node-set” setting web.config entries?

I'm trying to update web.config in SharePoint when the feature is activated. I have created Event receiver. The code inside receiver is: public override void ...
0
votes
1answer
55 views

Feature activation terminated if code is running too long (SP 2010)

Is it possible that feature activation will fail or will end unexpectedly (without any exceptions in ULS) when it takes too long for code to finish the job? We have a feature which during activation ...
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 ...
1
vote
2answers
4k views

Microsoft SharePoint is not supported with version 4.0.30319.225 of the Microsoft .Net Runtime

So, the story is the following: I just joined a team of an existing sharepoint project, sharepoint is installed RTM on all environments, from DEV to production. But because its 2 companies working ...
0
votes
1answer
89 views

Unable to see timer job

I have created a custom timer job, which contains a feature. I have successfully activated the feature on my web application, but it does not show up under the job definitions. Feature.xml is as ...
0
votes
0answers
37 views

Getting wrong PageLayouts from site with variations

I have a site in 2013 with two variations: de-de and en-us. On feature activation, I try to get list of Available Page Layouts using following code: using (SPSite site = new SPSite(siteUrl)) ...
0
votes
1answer
78 views

Unable to activate Feature in sharepoint 2010

I created a timer job which will send a mail to all the user.It was working fine in dev server.So ,I change the "SITE URL" in SOLUTION properties to prod server url(http://*_prod) and added solution ...
0
votes
0answers
62 views

Creating sub site in feature receiver does not work always in sandbox solution

I have created a sandbox solution in which there is one feature for creating two sub-sites. In the event receiver of that feature I have created two sites programmatically. The code is as per ...
0
votes
0answers
17 views

Dynamically Add web part in sandbox solution

I've site in office 365. I want to add site page in /SitePages on feature activation. I also want to dynamically add web part in this site page. How can I do this?
0
votes
1answer
58 views

Activating web feature from event receiver doesn't do anything

I have the following code that should run to automatically disable the Minimal Download Strategy feature when a new site is being provisioned. Unfortunately nothing happens. No errors are captured in ...
1
vote
1answer
65 views

Feature Activation Routing Workflows - SharePoint 2010 (en-US)

We get an error message: "the feature with the ID {3bc0c1e1-b7d5-4e82-afd7-9f7e59b60409} must be activated." Does somebody know how to activate this feature. I can't find it in central administration ...
1
vote
1answer
43 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 ...
2
votes
2answers
291 views

Any downsides to feature property “Always Force Install”?

Occasionally on our deployments, we would get this error Error occurred in deployment step 'Add Solution': A feature with ID {Guid} has already been installed in this farm. Use the force attribute ...