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
2answers
694 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 ...
3
votes
1answer
143 views

Removing page from content database via feature deactivation

I deployed page via module. Module is deployed via feature (method FeatureActivated). After that process page is deployed in content database. What I need is to be able to delete (remove) page from ...
1
vote
1answer
167 views

Stapled Web-scoped feature depending on Site-scoped feature: possible?

I have three features in a solution: A Web-scoped feature (A): has a FeatureActivated call to set up a site A Site-scoped feature (B): contains web parts A uses A stapling feature (C): staples A to ...
1
vote
2answers
124 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 ...
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 ...
2
votes
1answer
4k views

Activating a WebApplication Scoped Feature for a particular WebApplication

I developed a SharePoint 2010 WSP that contains a custom HTTP Module for performing short-url redirects. The WSP also contains a WebApplication scoped feature that consists of a feature receiver that ...
2
votes
3answers
5k 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 ...
2
votes
1answer
4k views

How do I Activate the Signatures Workflow?

After fixing the intranet site that was deleted, I am re-establishing some pages that were lost. I have a site template that I created and when I try to use it on the top level site, I receive the ...
7
votes
3answers
3k 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
2answers
2k views

Debugging SPFeatureReceiver

I have built an SPFeatureReceiver and am trying to debug it by attaching to the w3wp.exe process. No matter what I do no breakpoints are ever hit. Here are my steps Build and Package the solution ...
2
votes
2answers
729 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 ...
1
vote
1answer
255 views

Creating Site Templates - Master Page Not Being Handled Right After Upgrade

In our old MOSS 2007 farm we had a branding feature deployed that swapped out CSS Files, Master Pages, etc for our sites to keep a consistent branding across our Site Collections. We are currently in ...
1
vote
1answer
185 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
163 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 ...
0
votes
2answers
838 views

Activate “Office Sharepoint Server Publishing” in 2007

When I try to activate the Office Sharepoint Server Publishing for the root level site, I keep getting One or more features must be turned on before this feature can be activated. I tried ...
2
votes
2answers
869 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
921 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 ...
0
votes
1answer
627 views

Error When Attempting to Activate a Feature Scoped at Web Application Level

I have created a feature to apply a custom masterpage and stylesheet to my SharePoint web application. This feature is scoped to Web Application level. My problem is that if I try and activate it ...
1
vote
3answers
474 views

Cannot enable feature with feature receiver via PowerShell

I have a problem where I can enable a feature from the UI and code in FeatureActivated method works as expected. However, if I try to enable the feature via powershell as a scripted deployment, the ...
0
votes
1answer
645 views

Site Collection Feature won't go away

I have a custom Feature, with Site Collection scope, that won't go away even after I delete the Web Application, the Content Database, the IIS Web Site. I have uninstalled the Solution that ...
0
votes
2answers
2k views

Which Feature Scopes are right for me?

I'm developing a site using SharePoint Server 2010 in Visual Studio 2010. I'm having trouble determining which Feature Scopes are right for my features. I have a feature which includes a custom ...
1
vote
1answer
1k 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 ...
2
votes
3answers
2k views

How to deploy a web-scoped feature in visual studio SharePoint Project to a specific site in the Site collection?

I have a visual studio SharePoint site that contains a list definition and content type. I need this feature to be activated on a specific site in the site collection. I set the feature scope to ...
1
vote
4answers
892 views

Difference betweeen SPSite.Features.Add(…) and SPWeb.Features.Add(…)

I have created a Feature named Feature1. Feature1 is activated in a SharePoint site. I create a Web Part that contains the following code. SPSite site = new SPSite("http://intranet/site1"); SPWeb ...
0
votes
1answer
264 views

add activatefeature bat file wspbuilder solution package

I am using WSPBuilder to package up my features that creates lists and libraries. Is there a way to add a bat file with the package will activate these lists and libraries (since they are for ...
1
vote
2answers
146 views

Using CodePlex Feature Generator

I was just wonder whether any acutally used the feature generator from codeplex or not. I have following questions... Does it create good version (meaning not missing anything major from feature) ...
2
votes
0answers
501 views

ListInstance not firing all item event receivers [closed]

I have a feature that defines a number of list instances to provision whenever a new site is created using a particular site definition. The list template for one of these instances has an item event ...
1
vote
1answer
433 views

Declaratively pass parameters to a feature using activationdependency?

is there a way to declaratively pass parameters to a feature using activationdependency? I have a feature defined in ONET.XML that i want to move to a feature stapler, but since it has a property ...
1
vote
3answers
1k 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 ...
0
votes
1answer
744 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 ...
2
votes
1answer
1k views

<View> (ListViewWebPart) from within publishing page in feature

This is in the context of MOSS 2007. I have a custom site definition. Currently in ONET.xml we have the following Module: <View ...
1
vote
1answer
219 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". ...
0
votes
3answers
878 views

Feature Activation Error(Cannot Add Dll to GAC)

We have created a feature, which has 2 application pages. One is to activate the user control and the other one is for database configuration. For the database configuration, the user has to provide ...
3
votes
2answers
649 views

Deploying .dlls to the web application bin folder using .wsp fails with feature recevier

When deploying .dlls to the bin directory using a .wsp my feature receivers seem to blow at the deploysolution stage as they cannot find the related code for my feature receivers. How can I handle ...
3
votes
6answers
5k 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" /> ...
1
vote
1answer
508 views

How to modify the Feature Activation Workflow? [duplicate]

Possible Duplicate: How can I show an Application page on Feature Activation? Is it possible to modify the Feature Activation Workflow? For example, you have developed a Feature that ...
9
votes
4answers
5k views

Replace the Default Page in a SharePoint WebSite

I have been asked to programmatically do the following in a SharePoint 2007 team site collection: Create a website using the OOTB blank site template. (Please note, for project specific reasons, we ...