Questions tagged [feature-activation]
10 questions
2
votes
1 answer
Programmatically assign rights in sharepoint online
I'm working with custom templates in Sharepoint online and I want to
assign groups to lists automatically when a subsite is created. What I did:
Created a template in Visual Studio
Added an Event Receiver to the last Feature
Filled the…

Fabian Blom
- 37
- 8
1
vote
0 answers
Adding new server to Farm not firing event receivers
Experts-
We have deployed WSP (with features and feature activation event receivers) in farm environment. Event receivers creates timer jobs to perform few changes to all servers in farm.
Issue:
When new server is added to farm, WSP is getting…

Bala
- 11
- 3
1
vote
1 answer
A dependent lookup field does not support relationships
During feature activation of my SharePoint 2010 project, built and deployed using Visual Studio 2012, I receive this error:
A dependent lookup field does not support relationships
I've played around a bit with the sequence in which items are listed…

Zarepheth
- 2,465
- 2
- 32
- 49
0
votes
2 answers
Change XSLT of the SearchResultWebPart during the FeatureActivated
I have a piece of code which changes XSLT of a SearchResultWebPart at Sharepoint 2010 Search Center result page (spFileItem - is SPFile of a search result page) :
SPLimitedWebPartManager wpManager =…

MaksymD
- 314
- 1
- 4
- 16
0
votes
0 answers
SPWebApplication.WebConfigModifications.Count return zero when invoking in featureActivated?
I am going to modify web.config in an event receiver project SharePoint 2016. I use this piece of code in FeatureActivated function to get access to the web.config to modify it:
SPWeb myWeb = properties.Feature.Parent as SPWeb;
…

hossein hashemian
- 311
- 2
- 11
0
votes
1 answer
get file in featureActivated encounter an error : “Value does not fall within the expected range”
I set to copy a text file from a module to SharePoint server directory

hossein hashemian
- 311
- 2
- 11
0
votes
1 answer
Temporary "Backup" of SharePoint Content During Feature and Solution Deployment
I need to decide on a method for storing a subset of the content in a SharePoint site, so that when I delete and recreate certain lists as part of a feature activation, I can re-insert all of this content back where it should belong. I have an idea…

Grace Note
- 3,205
- 4
- 35
- 55
0
votes
1 answer
'Activate Features': Object reference not set to an instance of an object
I have the following activation code:
public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
// Create a new list and populate it.
using (SPWeb web = properties.Feature.Parent as SPWeb)
{
…

TheWebs
- 12,470
- 30
- 107
- 211
0
votes
3 answers
SharePoint activate feature file not found error
I am trying to activate a feature on our production MOSS server, all I get is a file not found exception.
Feature works great in test environment. What can it be?

JL.
- 78,954
- 126
- 311
- 459
-1
votes
1 answer
DB2 on Cloud Account Reactivation not working
I am an IBM employee who created a DB2 on Cloud service. I received a message that I need to reactivate my account, with a link. Clicking the link does not reactivate the account.
When I go to the DB2 on Cloud console there remains a "Reactivate…

Steven Ponessa
- 33
- 5