Tagged Questions

set of functionality that can be turned on at a particular scope level

learn more… | top users | synonyms

3
votes
1answer
2k views

Sharepoint 2010: Creating Feature.xml and Elements.xml using notepad

Thanks for your help in advance. I am learning Sharepoint 2010 and trying to dive deep. What I am doing right now is to create a content type and fields using declarative programming in notepad and ...
0
votes
1answer
228 views

SharePoint Server Publishing Infrastructure” feature workaround?

I am running Sharepoint 2010 Foundation.. I have been trying to locate SharePoint Server Publishing Infrastructure” features... This feature does not seem to be available on the Foundation version... ...
2
votes
2answers
442 views

Powershell script to retrive all the customization done on sharepoint site

How to write a powershell script which will display the customization done on a sharepoint site - customizations like custom features, custom workflows, custom site def, infopath form etc...
1
vote
2answers
358 views

How can the deployment of a feature (or element) be made dependent on the SharePoint version (2010/2013)?

I have a solution (deployed in the Sandbox) that declaratively creates CustomActions (menu items). It works fine in SharePoint 2010 and 2013, but we don't like the look in 2013 so I'd like to exclude ...
2
votes
2answers
2k views

Error occurred in deployment step 'Activate Features': The parent content type specified by content type identifier 0x0101 does not exist

I have created 80 content types. some of them are inherited from some other content types. I have placed all the content types in feature in such an order that parent content types are at top. But ...
1
vote
1answer
249 views

How to DeActivate feature of my site?

How to DeActivate feature of my SharePoint site remotely ? I have created .wsp package file and uploaded SandBox solution to my SharePoint site. But in my elements.xml file it has 1 mistake of ...
13
votes
4answers
13k views

Feature with id already exists - force option

I'm getting that old familiar error when trying to deploy my SharePoint solution via Visual Studio: Error occurred in deployment step 'Add Solution': A feature with ID {Guid} has already been ...
1
vote
3answers
802 views

Feature Folder Path Name Doubled

Why when I create a new feature in VS2010 and deploy it, I see the Features folder has my solution but the name is "Doubled Up". Is this expected behavior? See my sample below: C:\Program ...
0
votes
1answer
438 views

Override default.aspx in Sharepoint Foundation by Feature

I want to develop a feature(-event receiver) to override default.aspx. I want to use a webpart-page instead and add some webparts. I don't know how to override it. I know how to build a new ...
4
votes
1answer
143 views

Add .preview file using feature

I have this feature with a nice little master page inserted through a feature, and it works fine. Now I'm looking into theming, created a composable look. To choose this look in the design manager ...
0
votes
2answers
1k views

Change SharePoint Sub-Site's Default Page

I am installing a sub-site in Sharepoint 2010 using PowerShell. For all the sub-sites, we have configured sharepoint to launch a particular sub-site's default.aspx page as landing page after log-in. ...
1
vote
1answer
251 views

To deploy page layout with feature at the same time of adding content type, the content type Id issue

First let me describe my situation: Now I'm using object model to add two content types (inheriting Pages content type) using the FeatureActivating methode in the Feature Receiver. in the same ...
0
votes
2answers
796 views

Feature deactivation and webpart not being removed

I have a question regarding a feature and the webparts. Basically recently i noticed that when i deploy a webpart with my solution and it is bound to a feature on site collection scope, when it is ...
0
votes
1answer
67 views

Remove a list from all site collections when a feature is uninstalled

I have a site scoped Feature which specifies a list as such: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> ...
2
votes
1answer
330 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
3answers
245 views

Add user control or web part to every page in a site

I want to have a feature which causes the following to happen everytime any page in a site loads. I need to have a web part or user control which adds information about the current user to the page. ...
-1
votes
2answers
597 views

Overwrite a dll in the GAC to avoid installing the whole feature

Is it possible to overwrite 1 dll in the GAC of a live server of my customer? Otherwise I need to install the whole feature. In this feature are very much webparts and other stuff.
1
vote
3answers
1k views

Uninstall Site Collection Features not found error. What's the physical path for them?

I want to uninstall some features of the site collection on my server. These features are on my site collection and of site or web scope. On the Sharepoint "Site Settings" -> "Manage site features" ...
1
vote
1answer
1k 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 ...
2
votes
1answer
118 views

How to activate content type on specific web?

I have site collection ex: http://microsoft.com/ and i got few child webs: http://microsoft.com/news/ http://microsoft.com/somethingelse/ <Elements ...
1
vote
3answers
520 views

applicationSettings ignored in web.config

I've written a feature assembly that includes an SPFeatureReceiver. I can successfully deploy the feature's WSP, the assembly goes to the GAC, and the feature (mostly) does what it's supposed to. ...
1
vote
0answers
140 views

Missing Features and Existing Lists

I have a site that was hosted on a Microsoft Project Server instance. One of the sub-sites was based on the Project Workspace Template in order to get access to the "special" lists like Risks and ...
0
votes
1answer
102 views

Add custom code for solution upgrade

I have a solution for SP2010. Let's call it s.wsp. I had version 1 of s.wsp and now I have version 2 of s.wsp. Versions 1 and 2 share three common features: A, B and C. Version 2 adds a new feature D. ...
1
vote
2answers
1k views

Content deployment error; feature not installed

The business had a wish to copy content from production to acceptation (publishing environment). So I created a content deployment job to do so, and ran it. It failed with the following error: ...
2
votes
2answers
512 views

How to use one page layout for few content types

I have elements.xml with module: <Elements> <Module Name="IntranetNewsPageLayout" Url="_catalogs/masterpage"> <File Path="IntranetNewsPageLayout\IntranetNewsPageLayout.aspx" ...
3
votes
1answer
225 views

Update SPList.TemplateFeatureId

I need to update the TemplateFeatureId for a couple of lists in our SharePoint 2010 installation. The current TemplateFeatureId points to a feature that is no longer installed in the farm. Both ...
2
votes
1answer
121 views

Feature with List and registration form

I am new to SharePoint and want to discuss an issue I want to create a feature that will create custom application page (registration form) and a custom list to store registration form's data. I can ...
0
votes
1answer
144 views

web.config entries not deleted when deactivating farm feature

I have application that adds a Farm feature so Sharepoint 2010. When you configure it, some entries are added to the web.config file located in "C:\Program Files\Common Files\Microsoft Shared\Web ...
0
votes
2answers
778 views

Why does my feature appear in the site collection?

I have created a new feature in visual studio and scoped it to web. I have deployed this to a site collection. When i look at the site collections features it appears there. Why is this? I ...
0
votes
1answer
187 views

TimerJob error missing public constructor

I have an issue on my SharePoint 2007 portal, where i created a custom TimerJob, but when I deploy it i get a message: MyTimerJob cannot be deserialized because it does not have a public default ...
0
votes
1answer
334 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
2answers
805 views

How to Deploy the Feature with Scope=Site & Scope=Web for WebParts & EventReceiver respectively?

I have only 1 Visual Studio Project. It contains 1 EventReceiver(for DocumentLibrary) and multiple-WebParts. I have defined the Scope=Site of Feature.xml file of Project. I have created 1 custom ...
0
votes
1answer
163 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
0answers
74 views

Site-scoped feature with both Modules and Visual Web Parts

I have a Feature with Modules that place files in the Master Page Gallery, and I recently added Visual Web Parts to the feature. Then I realized at some point the copying of files into the Gallery had ...
0
votes
1answer
269 views

Adding style sheet to feature

I have created a feature in sharepoint 2010. The feature has a visual web part (sandboxed), the web part has controls etc. I have added some styles to the web part. How do i upload the stylesheet ...
0
votes
1answer
1k views

Page not appearing in site pages library

I want to deploy a page to the sitepages library. When i deploy this code it does not appear. However when i go to the url manually e.g. contoso.com/SitePages/mytestpage.html, i get the 'save as' ...
0
votes
2answers
1k views

How do i activate a Feature when a subsite is created

I have a web template that users can create sub sites from. I want to activate a feature when the subsite is created e.g. create list, columns etc for that sub site only. How would i approach doing ...
0
votes
2answers
118 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
43 views

Sharepoint Feature Creation Approach

I want to create a feature, once the feature is activated by the administrator a number of lists, items and workflows will be created. What would be the best approach to implementing this? The ...
0
votes
3answers
81 views

How to build a complex feature to collect and store user options that drive a delegate control

A long title but hopefully will be enough! Basically, I want to create a feture in Visual Studio that will do the following: When activated, places an option/link in the site collection options in ...
2
votes
1answer
151 views

Using solutions and features in creation/branding of SharePoint websites

I am new to SharePoint website creation and branding and I need your advice. For my first SharePoint site I have done the following: 1- Created/edited a master page. 2- Added CSS and JavaScript ...
0
votes
1answer
1k views

Where to Place XML File to be Read by Web Part?

In another question, I finally found a way to deploy the XML file to be read via a Feature, to the _layouts folder: Feature Elements File Should I be deploying it there at all? I wasn't able to ...
0
votes
1answer
1k views

Feature Elements File

I'm having some difficulty creating a Feature which contains a Web Part and a links.xml which is processed by the WP code-behind. My difficulty is in understanding the Feature XML config files and ...
1
vote
1answer
514 views

Web Part Feature

I'm working on a (non-visual) Web Part and wish to read from an xml file placed in the "C:\inetpub\wwwroot\wss\VirtualDirectories\80\wpresources" folder: Code-Behind: string sUri = ...
0
votes
2answers
700 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
543 views

Modify the content of the home page programmatically in SharePoint 2010

First of all, I'm pretty new to SharePoint so don't shoot me if this is a noobish question or if I don't provide all the right information at once... :) I have a team-site in SharePoint with ...
2
votes
2answers
1k views

How to delete features?

I have been uploading managed code xsn through central admin in development. It's the same infopath project. But I think SharePoint has a bug and it does not delete the old features when uploading a ...
0
votes
1answer
341 views

delete feature using event receiver on a farm feature

there is a farm feature and there is a web-scoped feature. web feature does stuff on multiple sites. If ever i want to get rid of the feature on all sites, I have a farm feature that has on ...
1
vote
1answer
227 views

Staple onto MyContent

I made my farm level stapler and my site level staple features, for SPSPER#0 it fires on MySite creation, so I presumed SPSMSITEHOST#0 would be MyContent, but nothing gets fires at all. I set the ...