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
17 views

Feature not activating, til 2nd attempt, no error

I have a custom feature that, when activated, alters a document library (adds content types, sets up views, attaches a workflow). For some reason, the first time I activate the feature nothing seems ...
0
votes
1answer
10 views

Object Reference Error when trying to check for activated features using windows forms app

var feature = spSite.Features.SingleOrDefault(sf => sf.Definition.DisplayName.ToLower().Equals(strFeatureName));//Error block if (feature != null)//if feature is activated { ...
0
votes
1answer
20 views

How to deactivate the delegate control feature after its first load?

I have created a delegate control and it works fine. Inside this delegate control I add a webpart to the welcome page. Thats it! After this action I would like to deactivate the delegate control ...
1
vote
1answer
20 views

Error occurred in deployment step 'Add Solution': Specified argument was out of the range of valid values

I've been working o a Timerjob project. All of a sudden, when I try to deploy the solution from VS, I got this error: Error 1 Error occurred in deployment step 'Add Solution': Specified ...
1
vote
1answer
31 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
3answers
131 views

'useragent not available file operations may not be optimized' error when activating SP 2013 workflow feature

I have a staging environment where I restored a Production backup file. The site works fine. However when I deploy my custom SP 2013 workflow and activate the workflow feature, I get the below ...
0
votes
0answers
24 views

Error occurred in deployment step 'Activate Features': Object reference not set to an instance of an object

I have added following code under feature activation method: The scope of feature is: Site public override void FeatureActivated(SPFeatureReceiverProperties properties) { try ...
0
votes
1answer
24 views

Lookup column, using one or two features?

I have 2 lists with a lookup column. I'm thinking about 2 choices. Even putting them in the same feature or separate them in 2 features. My question is : Does putting the lists in the same feature in ...
0
votes
0answers
42 views

Activate features by code when site created -Onet.xml

I created a new sub site from custom site template. I deployed my custom web template to this site collection. I create a new site and select my custom web template. But I dont understand, why I need ...
0
votes
2answers
27 views

Always i have to manually deactivate and activate feature manually?

I have a feature scoped to web. Every time i deploy my wsp using visual studio i have to manually go to the site feature and deactive and active feature to see my latest changes. Is there any setting ...
0
votes
1answer
33 views

WorkflowHistoryList feature not activating

I'm trying to attach a standard Approval Workflow 2010 to a document library however the powershell script I am using is throwing an exception in the follownig spot: # Create Workflow History list if ...
1
vote
0answers
107 views

Error occurred in deployment step 'Activate Feature': Could not load file or assembly

I have an itemAdding event that I am trying to add to a custom content type (inherits from Document). During activation I get the following error: Error occurred in deployment step 'Activate ...
1
vote
1answer
30 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
17 views

Can I change my public site collection into a 'normal' site collection?

My xxxx-public.sharepoint.com has very limited features compared to my other site collections that are not public. I have spent a while working on the public website but now I need access to features ...
0
votes
1answer
108 views

Activate the site collection publishing feature gives error: The content type “Page Layout” at “/teams/T200001/_catalogs/masterpage” is read only

I have a sp 2010 site collection. When I try to activate the site collection "SharePoint Server Publishing Infrastructure" feature I got this error: The content type "Page Layout" at ...
0
votes
0answers
24 views

FeatureActivated event not firing Visual Web Part

I have a Sharepoint 2013 visual web part(farm) and I want it to be added programmatically to a created page. I found some code snipplets online that let me do that, and I found out I have to put them ...
0
votes
2answers
121 views

Add Custom Web Part to newly created page programmatically

I created a custom web part for SharePoint 2013 and I would like it to be added to a blank page that is created for it. I looked it up and found out, that the I can add an Event Receiver to the ...
1
vote
1answer
44 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 ...
0
votes
2answers
51 views

feature event receiver activation, application page set as default newform

I am trying to set the application page as default. So I have added an application page in layouts folder using visual studio. But when I run the code in feature activation I am trying to get the file ...
0
votes
2answers
59 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 ...
0
votes
0answers
69 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
14 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
26 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
16 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
31 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
48 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
44 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
217 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
65 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 ...
1
vote
1answer
153 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
35 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
304 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
64 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
800 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
1answer
78 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 ...
2
votes
2answers
129 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 ...
0
votes
1answer
99 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
0answers
27 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 ...
0
votes
1answer
102 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
66 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
1answer
133 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 ...
0
votes
1answer
86 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 ...
0
votes
1answer
102 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
110 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
44 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
112 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
1answer
75 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
120 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 ...