Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [feature-activation]

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.

2
votes
1answer
502 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 ...
2
votes
1answer
563 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 ...
1
vote
1answer
262 views

SharePoint Online - Create a site out of site template - feature issue

I was trying to archive a site saving it as site template. I wanted to create another site using this site template, here i ran in to the issue, On further investigation i understand that a hidden ...
1
vote
1answer
38 views

How to prevent multiple webpart instances after feature re-activation?

Every time I'm activating the feature that contains my webpart, a new webpart instance is added to the page layout. Do I want to this web part being replaced by its new version? What is the parameter ...
1
vote
1answer
3k views

Is it safe to deactivate Workflow feature

I am unable to publish a SharePoint 2010 workflow due to the following error: “Could not publish the workflow because the workflow configuration file contains errors.” Several posts suggest ...
1
vote
1answer
257 views

Couldn't activate my feature because my ClientTag had reached 32767

While deploying my solution in visual studio in my development environment I came across a very strange issue. While uploading some master pages defined in my an Elements.xml file, the deployment ...
1
vote
1answer
504 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
764 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 --> </...
0
votes
1answer
21 views

sharepoint publishing feature changed my main navigation bar

I enabled sharepoint publishing feature, because I needed anchor feature. For some reason, this changed my navigation bar. I do not know what to call it, but the first link was moved above the other ...
0
votes
1answer
14 views

Create an owner group firstly include the site current user and assign permissions full control to it

i have used this code but when i deploy nothing changes : public override void FeatureActivated(SPFeatureReceiverProperties properties) { SPSite site = properties.Feature.Parent ...
0
votes
1answer
86 views

Error when Deactivating Farm Feature - Failed to load receiver assembly

I have a farm feature that was updated by PowerShell with the following: Update-SPSolution -Identity FILE.wsp -LiteralPath "PATH\TO\FILE.wsp" –GACDeployment I'm trying to deactivate and then ...
0
votes
1answer
371 views

Feature activation fails “Unable to locate the xml-definition” for content types not in the feature

SharePoint 2013 on-prem. Farm solution with Web scoped feature that deploys without problems when deploying directly from VisualStudio. However, when trying to activate the feature in the normal way ...
0
votes
1answer
78 views

SharePoint 2010 Error adding a Feature Event Receiver

I want to add a Feature event receiver, that add a webpart to a page, I followed the steps in this link But when I tried to deploy it , I hade the following error : Error occurred in deployment ...
0
votes
1answer
546 views

Failed to instantiate file from module: The specified list does not exist

I'm trying to add new pictures in a pre-existing library name My_lib using solution deployement. Here is my Element.xml <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas....
0
votes
1answer
125 views

Publishing Pages creation during Site creation through site definition

I have deployed a custom site definition.. Features available in onet.xml are - Site Features- SharePoint Server Publishing Infrastructure Publishing Workflow feature Web Features Office ...
0
votes
1answer
476 views

how to use a reusable workflow in a different site collectoin

I have create a 2010 workflow in SharePoint designer 2013 I have globally published a workflow and it appears now in my site collection at root site and every sub site in it. I want to deploy this ...
0
votes
1answer
263 views

Enterprise Collection Features (Specifically Infopath Forms) will not activate

I am trying to implement the Enterprise Site Collection feature set on my school's SharePoint 2013 Enterprise implementation, but when I go into Site Settings -> Site Collection Features and ...
3
votes
0answers
361 views

Reprecussions of deactivating or force activating SharePoint Server Publishing Infrastructure feature

I am receiving an error when I try to activate the SharePoint Server Publishing feature on a sub-site: Content type '0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39' ...
2
votes
0answers
251 views

How to prevent anonymous access to _layout pages

I am JR.System Admin in Sharepoint and I am trying to prevent anonymous users to access _layouts pages. I used this shell command with this instructions: get-spfeature -site http:// maximum.dmzisbank ...
2
votes
0answers
331 views

Activating a Web-scoped Feature using SharePoint 2010 CSOM fails with ArgumentException on featDefScope

I'm trying to activate a Web-scoped feature using the Client Object Model in SharePoint 2010. The code works when activating a feature in SharePoint 2013, but when run against SharePoint 2010, I get ...
2
votes
0answers
230 views

SharePoint PickerTreeView throwing null exception

When clicking the browse button for selection of document library or site null exception error occurs. This is the url of the popup that opens: _layouts/15/PickerTreeView.aspx?title=...
2
votes
0answers
149 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 every time i am ...
1
vote
0answers
19 views

DocID Property is not Present on Some Sites

I've been trying to activate the DocID feature on certain sites in our Site Collections. On each site collection we have the DocID feature activated following these instructions. For a long time we ...
1
vote
0answers
114 views

Enable Hidden Feature for Newsfeed Why?

I have seen Blogs where you can activate the "Hidden" News Feed Web Part though PowerShell and then add it to a Standard SharePoint Team Site. Enable-SPFeature -Identity "6928b0e5-5707-46a1-ae16-...
1
vote
0answers
20 views

SPLibrary: New Field added to Default View: Field still missing after update

I'm attempting to create a Site-Collection Feature in SharePoint 2013 that will create a new Site Column when activated, add this site column to every document library in the collection, and then ...
1
vote
0answers
318 views

Powershell Error on activation feature Enable-SPFeature : Object reference not set to an instance of an object

I an trying to activate a feature on site collection. I can activate/deactivate it manually and deactivate via PowerShell but when I try to activate it via PowerShell I get error of object reference. ...
1
vote
0answers
1k views

SharePoint Online error - One or more field types are not installed properly. Go to the list settings page to delete these fields

Today i ran in to an error "One or more field types are not installed properly. Go to the list settings page to delete these fields". I activated the SharePoint Sever Publishing Infrastructure ...
1
vote
0answers
193 views

Error on activating/upgrading a site template

A site template of site collection-X was used to create a subsite on site collection-Y, both are on SharePoint Online. I was thrown errors that a list of features were Not Activated/Not Licensed. I ...
1
vote
0answers
28 views

Block Feature activation for a site template

Is it possible to block feature activation for a specific site template in SharePoint using C#?
1
vote
0answers
32 views

Sandbox solution getting error on on prem

Sandbox solution gives me error : Unhandled exception was thrown by the sandboxed code wrapper’s Execute method in the partial trust app domain: An unexpected error has occurred from below ...
1
vote
0answers
79 views

Permission Feature activation/deactvation. How do I reset default permissions again?

Basically what I want to do is give admin the ability to lock an aspx for certain users through a read-only permission feature, so they can't upload/remove documents if the "case" is closed. The ...
1
vote
0answers
113 views

Site Feature Activation

I have a sharepoint list that creates a subsite once approved. I need to activate a feature via the workflow rest call. I have built the following dictionaries Headers: Accept: application/json;...
1
vote
0answers
57 views

How to update spjob

I've a solution sharepoint 2010 for a job that i want to update. So i did in powershell an update-spsolution and restart sharepoint timer job For testing, i changed the start hour in event of my job. ...
1
vote
0answers
516 views

Error occurred in deployment step 'Activate Feature': Could not load file or assembly

I have an ItemAdding event that I am trying to add to a custom content type (inherits from Document). During activation I get the following error: Error occurred in deployment step 'Activate ...
1
vote
0answers
124 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
768 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
1k 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
213 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
279 views

Runtime Error on server while activating site collection feature

I have creating content type using visual studio. while activating site collection feature i'm facing this error
0
votes
0answers
44 views

Error deploying in production ONLY

I have a SharePoint solution, consisted of 2 features. The first feature is consisted of 5 SharePoint 2010 workflows, and some web pages. The second one is empty and has a feature event receiver that ...
0
votes
0answers
35 views

How to speed up feature re-activation?

Upgrading my solution in production takes forever and I'm looking for ways to improve the typical feature reactivation upgrade scenario. What actually goes on in the features vary greatly and I'm ...
0
votes
0answers
32 views

Feature activation powershell commands for SP 2010 to 2013 migration

I heard there is a new Feature activation Powershell command which is used for migration of customization from SP 2010 to 2013. Has any one used these command in real-time? Can we depend on this ...
0
votes
0answers
264 views

Activate features by code when site created -Onet.xml

I created a new sub site from custom site template. I deployed my custom web template to this site collection. I create a new site and select my custom web template. But I dont understand, why I need ...
0
votes
0answers
130 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
69 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
2k 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
75 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
1k 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
36 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
513 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 columns),...