Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
752 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....
ameliapond's user avatar
0 votes
1 answer
507 views

How to enable/disable sharepoint 2010 farm scoped features using powershell?

I've got all I need to know about the feature. I just want to enable it. When enabling site, web or webapplication scoped feature I use to call this cmdlet: Enable-SPFeature -Identity <...
ameliapond's user avatar
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
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
2 votes
1 answer
146 views

Specify custom parameters in WSP deploy / feature activation?

I have a Feature Receiver where I access the Term Store to get / set something. My problem is, the code needs to connect to 'specific' term store.. but what if the Term store name changes when I ...
Water's user avatar
  • 539
2 votes
2 answers
2k views

Activate Approval, Collect Feedback, and Collect Signatures workflows for a site collection?

All workflows are active except for Approval, Collect Feedback, and Collect Signatures. Everything I've read says to go to Site Collection Features and activate Workflows. I've done this, but ...
The Vanilla Thrilla's user avatar
2 votes
1 answer
318 views

Feature Activation Routing Workflows - SharePoint 2010 (en-US)

We get an error message: "the feature with the ID {3bc0c1e1-b7d5-4e82-afd7-9f7e59b60409} must be activated." Does somebody know how to activate this feature. I can't find it in central administration ...
Tiac's user avatar
  • 365
0 votes
1 answer
348 views

Styling a 2010 publishing site using a feature - Not enough information to determine a list for module

I've got a site collection which currently only has one web site (the root web). The styling comes in a Site level feature with a few modules to deploy the master page, the CSS, and other resources, ...
MorayM's user avatar
  • 342
2 votes
1 answer
951 views

Deleting lists upon feature deactivation

I have a FeatureReceiver class for a feature that deploy a couple of list instances. In the FeatureDeactivating event I want to remove those instances as well as other artifacts which get deployed ...
Lorenzo's user avatar
  • 141
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
0 votes
2 answers
355 views

SP2010 - site collection feature not activating on MySite creation

I've created a new feature in a pre-existing project, closely modelled on features that are already within that solution. These features activate automatically when a new MySite is created, but the ...
Vassal's user avatar
  • 433
2 votes
1 answer
105 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
-1 votes
1 answer
240 views

get correct url from feature

To make it simple as the title suggest I want the correct url from the feature! atm when i was testing in test eviroment it worked well! I got the url using: SPSite siteCollection = properties....
Ali Jafer's user avatar
  • 17.8k
0 votes
1 answer
251 views

Execute SPFeatureReceiver only on site creation

We have recently upgraded from SharePoint 2007 to 2010 and we aren't yet ready to train users on the new interface, so I've created a SPFeatureReceiver that will set the site template back to the 2007 ...
Kirk's user avatar
  • 231
1 vote
1 answer
1k views

Enable-SPFeature doesn't work, but activation via Site Settings does. Why?

I have a weird problem... I'm trying to deploy a sharepoint solution in production. This project works fine in the test environment, but in production trying to enable the feature returns this error: ...
Maurizio Pozzobon's user avatar
2 votes
2 answers
354 views

Strange issue with feature activation

I'm having a problem while activating a feature. I have a custom dll that I referenced in this new project, and I'm trying to execute some code on the feature activation. The problem is that I get the ...
Alexandre Machado's user avatar
0 votes
1 answer
85 views

Activating a WebApplication scoped feature on a single web app touches all web app web.configs

I have a WebApplication scoped feature, and I have set ActivateOnDefault to false, to prevent the feature from being activated on every web application when installed. The feature is a simple ...
Chloraphil's user avatar
  • 1,088
0 votes
1 answer
51 views

error creating blog subsite in code

Im creating a blog subsite in the featureactivated event but it errors out everytime i activate the feature. looking at the logs i can see there is an access denied entry however the blog subsite is ...
Richard Banks's user avatar
1 vote
1 answer
195 views

Does the SPField.OnAdded() method get called from a CAML deployment?

If I create a custom list definition and instance in CAML, as part of a feature, and I have included a custom field as part of that list, will that field's OnAdded() method get called when the feature ...
Dylan Cristy's user avatar
  • 12.8k
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
0 votes
1 answer
489 views

Convert site to a publishing site

I need to activate publishing features on certain sites without losing their site content (lists and libraries). The publishing feature is activated in site collection. When I try to activate the ...
Bargant's user avatar
  • 601
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
5 votes
2 answers
24k views

Failed to load receiver assembly when activate feature

I have a problem when activating a Site scoped feature. Every time I try to activate the solution with STSADM or Powershell I get this error: C:\Program Files\Common Files\Microsoft Shared\Web Server ...
spry's user avatar
  • 53
1 vote
3 answers
761 views

How to activate feature in a custom site

I have created a publishing web template. Now I need to activate a feature once the site is provisioned. In order to achieve this, I've created an event receiver with something like this: public ...
Bargant's user avatar
  • 601
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
0 votes
1 answer
123 views

Problem activating feature on child webs

I have a feature that is manually activated. In a feature receiver I also activate the feature on any child SPWebs in existence. I would like some code to run only on the SPWeb where the feature is ...
Chloraphil's user avatar
  • 1,088
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
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
1 vote
2 answers
8k views

Feature not activated by default

I have a SP2010 wsp that contains multiple features all are scoped "web" all was working fine. But suddenly one of the feature stopped activating by default on deployment though all other features are ...
V.B's user avatar
  • 763
1 vote
3 answers
2k views

Problem Setting Item Level Permissions Dynamically

I am working with SharePoint 2010 feature receivers. On feature activation I am creating multiple web part pages in library "Site Pages". I want to set individual permissions for each page, but I want ...
V.B's user avatar
  • 763
4 votes
3 answers
14k views

Microsoft SharePoint is not supported with version 4.0.30319.225 of the Microsoft .Net Runtime

So, the story is the following: I just joined a team of an existing sharepoint project, sharepoint is installed RTM on all environments, from DEV to production. But because its 2 companies working ...
Luis Valencia's user avatar
3 votes
2 answers
2k views

Unable to delete List during solution deactivate

I have two list that I need to delete when a solution is deactivated and removed. But my code doesn't seems to be working. I am trying to delete and remove the quicklinks to the lists in ...
Abdel Raoof Olakara's user avatar
4 votes
2 answers
3k views

List Instances not created on Feature Activation for Initial Deployment

I have two features, a Content Type feature that contains the content type and list definitions, and a List feature that creates the List Instances from the list definitions. Both features auto-...
user avatar
1 vote
3 answers
2k 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 ...
LaPhi's user avatar
  • 1,001
0 votes
2 answers
1k 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 C:\Users\crmadmin>...
1c1cle's user avatar
  • 618
1 vote
1 answer
1k 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 solution,...
Luis Valencia's user avatar
1 vote
1 answer
155 views

What to do on feature deletion/deactivation

as I am trying to wrap my head around silverlight and sharepoint there's one thing I find most irritating: Provisioned xap-Files and/or web-Parts remain fully active upon deactivation/uninstallation ...
Nils's user avatar
  • 2,337
4 votes
1 answer
3k views

Activate a feature in feature installed

I have a feature for deploying masterpages that I am trying to activate upon install(deploy). The following snippets of code are in the EventReceiver.cs. I am getting a null when attempting to ...
Jason Jones's user avatar
1 vote
1 answer
268 views

Creating Site Templates - Master Page Not Being Handled Right After Upgrade

In our old MOSS 2007 farm we had a branding feature deployed that swapped out CSS Files, Master Pages, etc for our sites to keep a consistent branding across our Site Collections. We are currently in ...
tekiegreg's user avatar
  • 1,671