0
votes
1answer
34 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 ...
2
votes
2answers
117 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 ...
2
votes
2answers
189 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 ...
1
vote
1answer
185 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 ...
0
votes
1answer
68 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 ...
2
votes
1answer
96 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"
4
votes
1answer
242 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 ...
1
vote
1answer
135 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 --> ...
1
vote
2answers
78 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 ...
0
votes
1answer
158 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 ...
1
vote
2answers
2k 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. ...
1
vote
1answer
138 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 ?
1
vote
4answers
1k 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 ...
0
votes
2answers
944 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 ...
2
votes
1answer
31 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 ...
0
votes
0answers
54 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) ...
2
votes
1answer
297 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
1answer
823 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
1answer
270 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
139 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
2k 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
2answers
103 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
2answers
540 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
685 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
2answers
97 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
0answers
30 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
1answer
1k 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 ...
3
votes
1answer
197 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 ...
0
votes
0answers
463 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 ...
1
vote
3answers
1k views

Cant´t activate a custom feature with PowerShell but with the GUI

I want to activate a custom feature with PowerShell on a few sites in my environment. When I´m doing this job over the GUI, everything is perfect. But when I´, doing it with my script, the feature ...
2
votes
3answers
777 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
976 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
697 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
702 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 ...
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 ...
0
votes
1answer
69 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?
0
votes
1answer
607 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 ...
1
vote
2answers
254 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.
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 ...
1
vote
1answer
179 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 ...
2
votes
2answers
784 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 ...
2
votes
2answers
935 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 ...
0
votes
1answer
707 views

Site Collection Feature won't go away

I have a custom Feature, with Site Collection scope, that won't go away even after I delete the Web Application, the Content Database, the IIS Web Site. I have uninstalled the Solution that ...
0
votes
2answers
2k views

Which Feature Scopes are right for me?

I'm developing a site using SharePoint Server 2010 in Visual Studio 2010. I'm having trouble determining which Feature Scopes are right for my features. I have a feature which includes a custom ...
2
votes
3answers
2k views

How to deploy a web-scoped feature in visual studio SharePoint Project to a specific site in the Site collection?

I have a visual studio SharePoint site that contains a list definition and content type. I need this feature to be activated on a specific site in the site collection. I set the feature scope to ...
1
vote
1answer
443 views

Declaratively pass parameters to a feature using activationdependency?

is there a way to declaratively pass parameters to a feature using activationdependency? I have a feature defined in ONET.XML that i want to move to a feature stapler, but since it has a property ...
2
votes
1answer
1k views

<View> (ListViewWebPart) from within publishing page in feature

This is in the context of MOSS 2007. I have a custom site definition. Currently in ONET.xml we have the following Module: <View ...
1
vote
1answer
224 views

WebDeleting Event for New Sites created ? ?

I am using the WebDeleting event which is based on features. Just activate the feature, and whenever a web is getting deleted, the event handler throws a message saying "Web can't be deleted". ...
1
vote
1answer
509 views

How to modify the Feature Activation Workflow? [duplicate]

Possible Duplicate: How can I show an Application page on Feature Activation? Is it possible to modify the Feature Activation Workflow? For example, you have developed a Feature that ...