Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
2 answers
241 views

Saving Site as Template Creates New Features?

New to SharePoint. Working with a on-premise 2013 SharePoint system. Im trying to save a site as a template from Production and copying the resulting template WSP file into my DEV environment. There ...
hvndev's user avatar
  • 58
1 vote
0 answers
52 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 ...
KGlasier's user avatar
  • 1,745
1 vote
0 answers
166 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-...
Bismarck's user avatar
  • 1,021
0 votes
1 answer
166 views

How can I get/identify feature titles/names in REST?

SharePoint 2013 I'm able to view all site collection active features via the following endpoint _api/site/features. I'm unable to match any of the guids to feature titles; the endpoint doesn't seem ...
Oxossi's user avatar
  • 634
3 votes
1 answer
327 views

Cannot Extract Microsoft.Sharepoint.Client.Feature.DisplayName Property

I've written a CSOM script for Powershell (code below) to enumerate the features activated on a given site. When in the foreach loop I use $f.DefinitionId, I get a list of the feature GUIDs... however ...
Thomas Gass's user avatar
  • 1,308
1 vote
1 answer
87 views

Unable to apply the custom masterpage while activating the feature?

I need to apply my custom master page to site collection and subsites while activating the feature,I am using publishing site template(site collection), subsites are using blog and Search center ...
Debugger's user avatar
  • 1,722
2 votes
1 answer
181 views

How to move a feature from "Manage Site Features" to "Site Collection Features"

I have developed many custom web parts. These web part's features have always been placed in the Site Collection Features page under Site Collection Administration. For some reason a new web part i ...
IE5Master's user avatar
  • 255
1 vote
1 answer
43 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 ...
ameliapond's user avatar
0 votes
0 answers
58 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 ...
Boris's user avatar
  • 1,410
0 votes
1 answer
26 views

Feature activation running slowly on one environment

We have 3 farms, Dev, QA, and Production. Feature activations are running very slowly on the QA environment only. I have a custom feature that deploys files out to the style library and changes the ...
James Grizzle's user avatar
-1 votes
1 answer
83 views

Can't see feature on my webApplication

I did a solution for a SPJobDefinition. Feature scope is WebApplication as required. I have event FeatureActivated but when i deploy solution. When i go to CA -> Manage WebApplication -> select one ...
user1898765's user avatar
0 votes
1 answer
35 views

Feature not activating, til 2nd attempt, no error

I have a custom feature that, when activated, alters a document library (adds content types, sets up views, attaches a workflow). For some reason, the first time I activate the feature nothing seems ...
Simon McArdle's user avatar
0 votes
1 answer
28 views

Object Reference Error when trying to check for activated features using windows forms app

var feature = spSite.Features.SingleOrDefault(sf => sf.Definition.DisplayName.ToLower().Equals(strFeatureName));//Error block if (feature != null)//if feature is activated { ...
mallu coder's user avatar
0 votes
1 answer
41 views

Lookup column, using one or two features?

I have 2 lists with a lookup column. I'm thinking about 2 choices. Even putting them in the same feature or separate them in 2 features. My question is : Does putting the lists in the same feature in ...
KhalilG's user avatar
  • 686
0 votes
2 answers
62 views

Always i have to manually deactivate and activate feature manually?

I have a feature scoped to web. Every time i deploy my wsp using visual studio i have to manually go to the site feature and deactive and active feature to see my latest changes. Is there any setting ...
mak's user avatar
  • 191
2 votes
1 answer
27 views

Can I change my public site collection into a 'normal' site collection?

My xxxx-public.sharepoint.com has very limited features compared to my other site collections that are not public. I have spent a while working on the public website but now I need access to features ...
user39506's user avatar
1 vote
1 answer
895 views

Edit person.aspx?

We have more than 1000 user profiles that need a customized person.aspx. We need to make quite big changes to person.aspx. What is best practice here ? Do we edit person.aspx via SharePoint designer ...
Ilyas's user avatar
  • 1,341
0 votes
1 answer
38 views

Feature Activation User

Which user context is used in feature activation receiver? Is it current user (when activating from WebUI)? I have to call a service in feature activation receiver and I have to know which user ...
Greg's user avatar
  • 113
1 vote
1 answer
81 views

Programatically identifing feature for activation

I have a requirement where a custom action is only added to the root site of the site collection. So planning to add two features one Site scoped and the other Web scoped. In the event receiver of a ...
Shaamil's user avatar
  • 708
1 vote
2 answers
8k views

Reactivating feature with powershell - disable enable feature if it's active

$snapin = Get-PSSnapin | Where-Object { $_.Name -eq "Microsoft.SharePoint.Powershell" } #This script enables a feature on every site collection on a given web app if ($snapin -eq $null) { Add-...
Plexus81's user avatar
  • 2,250
2 votes
2 answers
143 views

Sharepoint is keeping a record of un-installed solutions

Today i ran a powershell script that lists all the features on my Sharepoint 2013 system along with their 'scope' and 'GUID'. I noticed while looking at the list that it also includes features that ...
C. Poulain's user avatar
0 votes
1 answer
377 views

Unable to see timer job

I have created a custom timer job, which contains a feature. I have successfully activated the feature on my web application, but it does not show up under the job definitions. Feature.xml is as ...
user29505's user avatar
3 votes
2 answers
2k views

Any downsides to feature property "Always Force Install"?

Occasionally on our deployments, we would get this error Error occurred in deployment step 'Add Solution': A feature with ID {Guid} has already been installed in this farm. Use the force attribute ...
kei's user avatar
  • 586
2 votes
2 answers
1k views

Difference between enabling feature from PowerShell and activating it via site collection features page?

I am trying to create a SharePoint list based on a list template via a feature. The code for creating the list is in the FeatureActivated event handler of the feature's EventReceiver.cs file. The list ...
GMalla's user avatar
  • 94
3 votes
1 answer
9k views

PowerShell code to add/remove, install/uninstall and enable/deactivate feature at Web, Site Collection, Web Application and Farm scope

Please can you give me the best practice PowerShell code to:- A. Add, install and enable feature at -Web -Site Collection -Web Application -Farm scope B. Deactivate, Uninstall and Remove ...
variable's user avatar
  • 4,440
0 votes
1 answer
267 views

Hide all site templates except custom and also show templates which are added after feature activation

We want to remove all site templates except custom templates under Create > 'Sites and Workspaces'. and we only want to allow custom templates... Custom template can grow over the time by saving site ...
Connect The Dots's user avatar
2 votes
2 answers
2k views

PowerShell Script To Find Where SharePoint 2010 Features Are Activated

I want a PowerShell script to find where Features are activated in a site collection and its sites/subsites Like for example feature "Enterprise feature"
Brishal's user avatar
  • 1,205
4 votes
1 answer
1k views

Farm scope Event Receiver

For some security reasons on one of our farm level solutions, we need to limit some actions using Event Receiver-FileMoving event. However, as known, event receivers can be deployed only by Site or ...
Natan's user avatar
  • 240
1 vote
1 answer
1k 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 --> </...
user615993's user avatar
1 vote
2 answers
742 views

What user data or customizations will I lose if I deactivate and reactivate a site collection feature

I am having problems with my embedded SSRS reports (print button missing) and it claims that my Report Viewer web part is not configured correctly, or something along those lines. I was thinking of ...
Shane Wealti's user avatar
2 votes
1 answer
2k views

"The system cannot find the file specified" message while deploying new feature

I'm trying to deploy a new feature on sharepoint 2010 with scope web. The deploy seems to run successfully, but the feature is not prensent in feature manager. While visual Studio deploys the ...
hello B's user avatar
  • 681
1 vote
2 answers
14k views

Feature with Id 'guid' is not installed in this farm, and cannot be added to this scope

I have a WinForms project that acts as a Sharepoint 2013 Solution installer. It basically do some checking, create a sql database, adds and install a SP Solution and finally activates the feature. ...
empz's user avatar
  • 781
1 vote
1 answer
900 views

Activate Content Organizer feature from code

how to activate content organizer feature from c# code or by powershell script. I want to activate this feature on my subsite from my code ?
Rajesh Joshi's user avatar
  • 1,344
1 vote
4 answers
6k views

How to enable site collection feature by default when deploying a visual webpart from visual studio?

I am making a visual web part in SP 2010 using visual studio 2010. I want it so that when I add and deploy my wsp file, it should by default keep the site collection feature activated for the web ...
omega's user avatar
  • 2,170
0 votes
2 answers
3k views

Sharepoint package installation - Feature is not visible in Site collection -> settings

I am not very experienced with Sharepoint 2010 and I am having trouble installing a package. I downloaded a package from "iLove SharePoint" as I need to call web service from a workflow. The package ...
user18620's user avatar
2 votes
1 answer
104 views

Is there a relative URL for files hosted in the TEMPLATE\FEATURES directory?

Is there a relative URL for files hosted in the TEMPLATE\FEATURES directory? What I'm trying to do is re-provision data every time my feature is activated without deleting the SPList. The idea is to ...
user avatar
0 votes
0 answers
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) ...
TheWebs's user avatar
  • 187
2 votes
1 answer
886 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, discussion ...
Dylan Berry's user avatar
1 vote
1 answer
2k 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 ...
JᴀʏMᴇᴇ's user avatar
3 votes
2 answers
1k 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 ...
Shkipper's user avatar
  • 2,105
0 votes
1 answer
246 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 this ...
Ievgen's user avatar
  • 360
0 votes
4 answers
4k 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 ...
andersonvom's user avatar
0 votes
2 answers
209 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 ...
user1786107's user avatar
1 vote
2 answers
2k 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 ...
Abbas's user avatar
  • 159
1 vote
1 answer
2k 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 ...
MikeC's user avatar
  • 1,112
0 votes
2 answers
115 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 ...
Muhammad Raja's user avatar
0 votes
0 answers
40 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 ...
Shkipper's user avatar
  • 2,105
0 votes
1 answer
5k views

How do I configure styles and layout of a Summary Link Web Part using code?

I have successfully added a Summary Link Web Part as a feature and want to configure the styles and layout of it, including: The default style for new links The group header style The number of ...
Ryan Spears's user avatar
3 votes
1 answer
234 views

Site Scope Feature dependent on a Web Scope Feature

On the root web for my site collection I need to make sure a web scope feature is turned on. In the feature EventReceiver I can turn on the feature progamtically. How can I stop the user turning the ...
John's user avatar
  • 3,763
0 votes
0 answers
525 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),...
Xavi Guirao's user avatar