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
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 ...
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?
3
votes
1answer
307 views

Listadded events on My Site omits Personal and Shared Documents creation

I want to have a feature which will change some settings on every list on My Site. Problem is i cant change settings for two main list: Shared and Personal Documents. For testing I have web feature ...
2
votes
3answers
899 views

Сan't programmaticaly activate the Publishing Feature for the Blog site

I'm developed a solution for stapling features. in my solution are located two projects, one project contains a module which consist the id features, what I want to attach to the sites collections and ...
1
vote
2answers
1k views

Activate Feature in Powershell and specify custom properties

I want to activate a feature with custom properties. It is easy to do in onet.xml by providing Properties: <Feature ID=“78277796-98D9-4276-B7D2-E3374AAC43D8“> <Properties> ...
0
votes
2answers
801 views

Errors when attempting to install a sharepoint 2010 feature

I'm attempting to install and activate a feature containing a Timer Job. When I execute the install-spfeature cmdlet I get the following error. What is the source of my error? PS ...
1
vote
1answer
800 views

removing a sharepoint solution duplicates entry in web.config?

My intentions is to be able to add and remove web.config changes when a solution is installed or uninstalled. The code below and the powershell below works ALMOST as expected. When I add sp ...
1
vote
2answers
121 views

Add custom sharepoint feature to solution

i customized the OSearchBasicFeature inside 14/template/features/ to have a pretty search-box. Since i want to customize my SharePoint only through deploying a package i was wondering how i'm able to ...
2
votes
1answer
2k views

Can't activate feature because of an existing column in a child site

I have a site collection without the publishing feature activated (Id: f6924d36-2fa8-4f0b-b16d-06b7250180fa). I want to activate it, but it fails : Enable-SPFeature : The field with Id ...
0
votes
1answer
613 views

Error on Activate Features on deploying SharePoint Skin

Error occurred in deployment step 'Activate Features': Object reference not set to an instance of an object. I just can't figure out where the error is occuring. Found some blog posts concerning the ...
2
votes
1answer
445 views

FeatureActivated not called for Site Template

We have an web-level feature that when you activate it will change the master pages used by the web to point to a .master page in the rootweb of the site collection. This feature has been activated ...
1
vote
1answer
146 views

What to do on feature deletion/deactivation

as I am trying to wrap my head around silverlight and sharepoint there's one thing I find most irritating: Provisioned xap-Files and/or web-Parts remain fully active upon deactivation/uninstallation ...
0
votes
1answer
146 views

Custom list Feature problems

I created a custom list definition, which works well. When i deploy, the list definition is added, when i retract, the list definition retracts properly. I also created a list instance from said ...
1
vote
0answers
195 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 ...
1
vote
1answer
641 views

Sharepoint 2010, templates and Features

I have been trying to create site templates from a local SP2010 server that can be used by a client for some custom content. The problem is all the "the site template requires that the feature be ...
1
vote
1answer
2k views

Provision Web Part Page from Module with SetupPath?

Is it possible to provision a Web Part Page using a Module element with a SetupPath specified, rather than a Path specified? For example, if I wanted to create a module to provision a page from: ...
0
votes
1answer
70 views

How do you activate a feature on promotion?

When promoting a wsp and you have 1 or more features you wish to activate as soon as promoted, how do you do so without manually activating them on the site they are deployed to?
4
votes
1answer
1k views

Is it possible to export a site workflow?

If I have a Site Workflow on my development machine, what's the best way to deploy it onto the production system which is hosted on Microsoft SharePoint Online? I have found a way of doing it which ...
2
votes
2answers
272 views

Setting customErrors attribute

When activating a feature on a site I am getting a Runtime Error page that indicates to set customError mode attribute to Off in order to see the error. I have changed the web.config in my IIS folder ...
0
votes
1answer
690 views

Event receiver feature update

I am developing an event receiver in VS2010. To test the event receiver I deploy it to development using the functionality within VS 2010. This works without problems. However my concerns start when ...
5
votes
1answer
138 views

How to handle web references becoming stale in a web feature activation

We have a number of web-scoped features all stapled to a site definition, so they are all activated in turn when a web is created from the definition. It seems the feature receivers all share the ...
1
vote
3answers
3k views

SharePoint 2010 - Enable farm scope feature via powershell

I have deployed a solution with farm scope feature. I am able to activate / deactivate feature via "Manage Farm feature". I want to do this via power shell : When i try to activate feature ...
2
votes
5answers
11k views

Enable-SPFeature not working

I am using PowerShell script to deploy and activate a feature in the same script. Everything works fine and I can see my feature in the Sharepoint Root folder (14 hive). I run it using Farm Admin. ...
1
vote
2answers
269 views

What are some of the best practices around feature activation and their dependencies

Specifically what are the do's and dont's for installing, activating, deactivating and uninstalling a feature. What are the problem areas of working with features and how do you handle.
0
votes
2answers
1k views

Problem renaming a file in document library programmatically

I want to use a FeatureEventReceiver to rename Home.aspx -> Old_Home.aspx. When i activate the feature rather than Home.aspx getting renamed it gets deleted/disappears (i.e. missing when i refresh ...
1
vote
2answers
1k views

How to trace the ListAdded event for the entire SharePoint 2010 farm?

In our SharePoint 2010 environment, we want to enforce the users to choose the option "show user names in the survey list" (survey list) however there may be a time when user may choose "No" to this ...
0
votes
2answers
4k views

Enable-SPFeature Fails

I am trying to activate a feature using PowerShell Enable-SPFeature but receive the following error: Enable-SPFeature : The Feature is not a Farm Level Feature and is not found in a Site level ...
1
vote
2answers
3k views

The breakpoint will not currently be hit - debuging feature receiver

I need to debug my feature receiver, so I set up few breakpoints, but when I hit F5 in VS2010, they are all missed, and it says that "The breakpoint will not currently be hit. No symbols have been ...
1
vote
4answers
3k views

How to activate TaxonomyFieldAdded feature in Sharepoint Online

I might have stumbled over a huge "gotcha" in SharePoint Online. Currently on the E3 plan. I have created a site collection from the "Blank Site" template (not wanting a cluttered workspace), and ...
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
0answers
63 views

how manually activate site workflow in sharepoint designer 2010? [duplicate]

Possible Duplicate: Sharepoint Designer 2010 - Site workflow and list workflow I have creted site workflow from the sharepoint designer. (it is not possible to activate site workflow from ...
4
votes
2answers
295 views

Feature Activation Logic (Prevent Activation)

I have three site collection features used to set branding throughout the site collection. I want to prevent the accidental activation of one of the features if one of the three is already activated; ...
0
votes
1answer
211 views

Include SPDatabase for Backup

SharePoint 2010 I've been Googling for days now, trying to find an answer to my issue. My boss wants to see if it's possible to do the following upon feature activation: Create a custom database ...
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 ...
3
votes
1answer
165 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
184 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
133 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
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 ...
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
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
2answers
3k 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
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 ...
1
vote
1answer
257 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
191 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
170 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
1k 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
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
1k 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 ...