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.
0
votes
1answer
23 views
Sharepoint Event Recievers Feature Activation
I am trying to create an event reciever based off an example created by a previous employee. This event reciever is scoped for the site level and is a ListItem event reciever.
I believe I have ...
0
votes
1answer
25 views
Execute SPFeatureReceiver only on site creation
We have recently upgraded from SharePoint 2007 to 2010 and we aren't yet ready to train users on the new interface, so I've created a SPFeatureReceiver that will set the site template back to the 2007 ...
1
vote
1answer
41 views
How can I find the Feature Activation Dependency Powershell
I am running a recursive function that activates many features in powershell however I need to find the child feature a feature is dependent on before it is activated. How can I do this in powershell.
...
1
vote
0answers
17 views
Site-level fields created by the Community Site features and its dependencies must not be removed
I get this error: Site-level fields created by the Community Site features and its dependencies must not be removed. when trying to create a Community Site or Active the Community Site Feature, ...
0
votes
1answer
48 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
0answers
75 views
SPUtility.GetLocalizedString not working in feature receiver when deployed from Visual Studio
I use SPUtility.GetLocalizedString in FeatureActivated method of a feature receiver to add a label to a custom action on a specific list instance.
When activating feature from SharePoint or ...
1
vote
1answer
25 views
Strange issue with feature activation
I'm having a problem while activating a feature. I have a custom dll that I referenced in this new project, and I'm trying to execute some code on the feature activation. The problem is that I get the ...
0
votes
0answers
85 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 ...
1
vote
1answer
97 views
Sharepoint 2010 failed to apply web.config modifications to Web Application
I have a SharePoint solution deployed into a specific web application on the production SharePoint site.
When I try to enable the feature from the site features in Site Settings I get an error saying ...
0
votes
1answer
38 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
26 views
error creating blog subsite in code
Im creating a blog subsite in the featureactivated event but it errors out everytime i activate the feature. looking at the logs i can see there is an access denied entry however the blog subsite is ...
1
vote
1answer
57 views
Does the SPField.OnAdded() method get called from a CAML deployment?
If I create a custom list definition and instance in CAML, as part of a feature, and I have included a custom field as part of that list, will that field's OnAdded() method get called when the feature ...
1
vote
1answer
164 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
186 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 ...
1
vote
1answer
402 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 ...
2
votes
1answer
108 views
SPListCollection.EnsureSitePagesLibrary() throwing SPException (specified title already exists in this Web site)
I am attempting to call SPListCollection.EnsureSitePagesLibrary() upon FeatureActivated. The method is throwing the following exception:
Microsoft.SharePoint.SPException: A list, survey, ...
1
vote
2answers
112 views
Add script reference to all pages in a site collection when a feature is activated
I'd like to have a feature which adds a script reference to all pages in a site collection when activated.
This seems like a scenario where I should just modify the master page, but for it to affect ...
1
vote
1answer
174 views
Feature Activated Event not triggered when creating a new sub site with web template
When I create a new site I have a Web Scoped FeatureActivated event that I would like to run. The feature does get Activated but the FeatureActivated event is not triggered.
The site is created with ...
1
vote
1answer
178 views
Can't find WebApplication scoped feature
I've deployed a wsp that has 2 features. The one scoped at a web level is listed where I'd expect to see it and activates without a problem. The feature scoped at a web application can't be found ...
0
votes
0answers
103 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:-
...
0
votes
3answers
231 views
Getting SPWeb Object in two ways
I want to access SPWeb object in feature under its FeatureActivated method. There are two ways to do this:
Public Override void FeatureActivated(SPFeatureReceiverProperties properties)
{
//Method 1
...
2
votes
1answer
402 views
Error occurred in deployment step 'Activate Features': Feature with Id 'xxxxx-xxx' is not installed in this farm, and cannot be added to this scope
while installing a feature, VS ouput the error:
Error occurred in deployment step 'Activate Features': Feature with Id 'xxxxxxx-xxxx' is not installed in this farm, and cannot be added to this scope. ...
0
votes
1answer
54 views
Convert site to a publishing site
I need to activate publishing features on certain sites without losing their site content (lists and libraries). The publishing feature is activated in site collection. When I try to activate the ...
0
votes
1answer
63 views
Why do i have to activate my web features before i can create a website
I have created a web template using visual studio 2010, it has two features.
Feature1 - Contains WebTemplate element (scoped site)
Feature2 - Contains List Definitions (scoped web)
I package, upload ...
0
votes
1answer
90 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
80 views
Unable to get list “Calendar” list in feature while creating site
I want to create custom calendar list programatically.
SPListTemplate template = web.ListTemplates["Calendar"];
var newListID = web.Lists.Add(fromTitle, description, template);
But i cannot do ...
0
votes
4answers
650 views
How to programmatically get Feature ID?
In order to programmatically activate a feature, you need its Feature ID (some type of GUID) that is set in the .feature file. Is there a pretty way of retrieving this value programmatically, so that ...
0
votes
1answer
308 views
Error occurred in deployment step 'Activate Features': Invalid field name
SharePoint Error message Error occurred in deployment step 'Activate Features': Invalid field name.{guid}
0
votes
1answer
37 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
2answers
241 views
Automatically Activate Feature when subsite created
I have created a web template with 2 features, one is scoped site (to create web template) and the other is scoped web (this is for creating a list instance)
Every time i deploy the solution and ...
0
votes
2answers
62 views
How do i create a feature in web template?
I have created a web template in visual studio, it includes the standard element file and onet file, it also has a feature which is scoped to site level.
All this works fine, i can deploy it and can ...
0
votes
1answer
1k 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
3answers
524 views
rootWeb.AllProperties[“__InheritsCustomMasterUrl”] = “True”; not working
I am developing a branding project, in this project i have custom master page, i can successfully deploy it and automatically apply to the root web. But i want all the subsites inherit the master page ...
1
vote
3answers
305 views
How to activate feature in a custom site
I have created a publishing web template. Now I need to activate a feature once the site is provisioned.
In order to achieve this, I've created an event receiver with something like this:
public ...
1
vote
2answers
682 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 ...
0
votes
1answer
183 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
190 views
waiting for a feature to be activated when the SPWeb is created completly
I have created a web scoped feature. In FeatureActivated method I try to GetLimitedWebPartManager from default.aspx file. But the web has not been created yet and default.aspx does not exists.
1
vote
1answer
64 views
Access exceptions when trying to add a content type to list
In the following method, 'list' is simply an SPList ("Documents"). I'm attempting to add ContentTypes to the list and then update it. This code is found in the FeatureActivated event of an event ...
0
votes
2answers
206 views
Web-scoped Feature falsely activated during Visual Studio deployment
In Visual Studio I have a solution containing two features with their Scope set to "Web". These two features work as expected but the only thing that is going "wrong" is that they are activated when I ...
0
votes
1answer
223 views
Sandboxed Solution to create a Document Library and enabling manual declartion as record
I need to create a SharePoint Feature, when activated needs to create a Document Library and then enable the manual declaration as record. Following is the code which is working fine in a Console ...
0
votes
2answers
447 views
“Thread abort exception” in event receiver after adding a solution?
I am developing an event receiver for the web provisioned event. It does quite a few things, culminating to add and deploying a solution and activating a feature from it.
When I do the following:
...
0
votes
1answer
363 views
Hide a feature in Site Collection Administration => Features area
I have a feature with webparts that needs to be activated using powershell. I need a way to either hide the feature on the Site Collection Administration => Features (under Site Settings) or to ...
0
votes
0answers
119 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
2answers
881 views
What is the Correct Way to Deploy Solutions in Foundation 2010 Via C# API
I am on a team developing a "portal" for SharePoint Foundation 2010. I am responsible for making the installer which sets up a new instance of SharePoint. It handles more than just the installation ...
0
votes
2answers
77 views
How would a Web Application feature knows on activation that which web app its supposed to run on
Scenario can be read on My other Question
Further to that question, why would a web application has timer job definition that it hasn't been deployed to.
this is the code I am using for feature ...
0
votes
1answer
92 views
workflow inactive - after deployment?
my workflow is deployed through the following script in SharePoint 2010:
# Set CurrentDirectory
$callingDir = Split-Path -Parent $MyInvocation.MyCommand.Path
[Environment]::CurrentDirectory = ...
0
votes
1answer
79 views
Problem activating feature on child webs
I have a feature that is manually activated. In a feature receiver I also activate the feature on any child SPWebs in existence. I would like some code to run only on the SPWeb where the feature is ...
0
votes
2answers
4k views
Feature Activation with Powershell
I am looking for a good example of powershell script for SP2010 with which I could activate my features with prior check if feature has been deployed (some are "web" and some are "site" scoped. Could ...
1
vote
0answers
276 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 ...
0
votes
0answers
119 views
WSPbuilder is not including feature.xml during wsp build - MOSS 2007 and VS 2008
I am trying to deploy one existing Custom Project to MOSS 2007. I am able to compile using Visual Studio 2008 and using WSPBuilder am able to build as wsp. But my WSP is only containing my project.dll ...


