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
1answer
21 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
1answer
133 views

Cannot activate SharePoint Publishing Feature

despite placing the following code in my onet.xml, the publishing feature is not activated. <Feature ID="A392DA98-270B-4e85-9769-04C0FDE267AA"> <!-- PublishingPrerequisites --> ...
1
vote
1answer
159 views

Deployment Issue with Custom FIeld Types

SHORT DESCRIPTION Custom Field Types are not being correctly deployed/activated on all but one Virtual Machine. I have several VMs with identical SharePoint environments. I have a Visual Studio ...
1
vote
1answer
850 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
1answer
33 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
1answer
35 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
41 views

Styling a 2010 publishing site using a feature - Not enough information to determine a list for module

I've got a site collection which currently only has one web site (the root web). The styling comes in a Site level feature with a few modules to deploy the master page, the CSS, and other resources, ...
0
votes
1answer
67 views

Hide all site templates except custom and also show templates which are added after feature activation

We want to remove all site templates except custom templates under Create > 'Sites and Workspaces'. and we only want to allow custom templates... Custom template can grow over the time by saving site ...
0
votes
1answer
25 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 ...
0
votes
1answer
156 views

“The system cannot find the file specified” message while deploying new feature

I'm trying to deploy a new feature on sharepoint 2010 with scope web. The deploy seems to run successfully, but the feature is not prensent in feature manager. While visual Studio deploys the ...
0
votes
1answer
73 views

Activating a WebApplication scoped feature on a single web app touches all web app web.configs

I have a WebApplication scoped feature, and I have set ActivateOnDefault to false, to prevent the feature from being activated on every web application when installed. The feature is a simple ...
0
votes
1answer
269 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
1answer
90 views

Associate my custom feature to default publishing site template with FeatureSiteTemplateAssociation

I want to have an event receiver on site collection creation, but it is not available. So as an alternative way i think of writing a custom feature, and associating it with the default publishing site ...
0
votes
1answer
474 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 ...
0
votes
1answer
1k 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
1answer
223 views

Custom Site Content type is not getting mapped for the required taxonomy field

I have a custom project site template which is coded in c#.net VS 2010, I have deployed the projects related to the project site template into central admin through VS After deploying the solution I ...
2
votes
0answers
350 views

Sandbox solutions - Prevent auto activation of site collection features

Question: Does anyone know a way to activate a sandbox solution in SharePoint Online without having the site collection features automatically activated? Background info: I have done a bit of ...
2
votes
0answers
126 views

Site is Provisioned but Content Type List is still empty

I have this feature that I am trying to run in order to configure a site, this feature among other things creates pages based on content types, etc. The problem I am facing is that everytime i am ...
1
vote
0answers
25 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
0answers
86 views

Try to activate a web site feature. Error: Failed to create feature receiver object from assembly

I am using sharepoint 2007. I have created some custom solution in visual studio 2008. In this solution there is an event receiver "FeatureActivated". I have deployed this wsp to my sharepoint ...
1
vote
0answers
60 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
0answers
316 views

Set Record Declaration Settings programmatically

I created a feature receiver whereby on activation will activate and set certain features and its properties. One of that feature is InPlaceRecords. Below is my code in the FeatureActivated method:- ...
1
vote
0answers
189 views

Using templates from a site under 'My Site'?

One of our customers has created a My Site area (with default settings), and then created a new site 'TestSite' in their content area. When they try to create a new site in another My Site area (on ...
0
votes
0answers
19 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
0answers
20 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
11 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
0answers
33 views

Staple a feature on custom site template site creation

I have a site template on sharepoint 2007 (stp file) which has everything setup that i need on it and is the way the client wants the site to look. However if i template the site and upload that ...
0
votes
0answers
31 views

Enable-SPFeature not working in scheduled task

I have a powershell script that runs every 5 minutes it creates a subsite on a Site Collection the last part of the script activates the SiteNoteBook feature in SharePoint 2013. I added all the new ...
0
votes
0answers
31 views

Creating a feature however manifest does not contain GUID ID

Currently I am creating four custom features within a visual studio sharepoint 2010 project. Within the manifest there is no ID generated once the feature has been created for two of the features. All ...
0
votes
0answers
47 views

How to set ImageUrl/ThumbnailUrl for a particular list?

I'm looking to create custom ImageUrl images for lists that I'm programmatically adding to a web via Feature Activation. However, there seem to be a few stumbling blocks: 1) ImageUrl is not updating ...
0
votes
0answers
38 views

Enable SP-Feature when custom page layout is used

I am new to Sharepoint - I created a custom page layout and now I want to enable SP-Features when this custom page layout is used in a website collection. Is there a possibility to do this through ...
0
votes
0answers
265 views

debug feature activation

I have a visual studio project with Sharepoint Site structure. I didn't write any Event Receivers that will add my items (SP List Definitions, List Instances, ...) to the site. That means I use ERs ...
0
votes
0answers
54 views

Features in Sharepoint 2010

I created an empty Project and used the default Feature1 thats created with the project to then create the following: public override void FeatureActivated(SPFeatureReceiverProperties properties) ...
0
votes
0answers
102 views

List View Webpart is not getting added while activating feature using powershell

I created a feature and on activation of it I am trying to add list view webpart. Using powershell command activating feature and it gets activated but List View Web part it is not getting added on to ...
0
votes
0answers
474 views

Error activating ShrePoint Server Publishing Infrastructure feature

I have installed SharePoint Server 2010 Enterprise Edition in Windows Azure. After successful installation and configuration,I created a web application. When I tried to activate SharePoint Server ...
0
votes
0answers
231 views

FeatureActivated is not firing after activating feature in code-behind

I've a strange problem with activating a feature from C#: I have a list with a event receiver attached, which creates a new sub-site every time a new listitem has been added: var newWeb = ...
0
votes
0answers
30 views

Custom delegate is applied even if the feature is deactivated

I have a question regarding a feature. Situation: I have a feature that is farm scoped, with this feature I deploy a delegate control (xml file), this file refers to cs code. So I've added that file ...
0
votes
0answers
463 views

Deploy solution using powershell

I have a solution with 4 projects to automatically some processes in Sharepoint.these projects are: WebPartProject: Create a custom webpart CreateTemplate: Create 2 documents libraries (with ...