Defines methods that are called when a Feature is installed, uninstalled, activated, deactivated, or upgraded.

learn more… | top users | synonyms

2
votes
2answers
247 views

Error occurred in deployment step 'Add Solution': Specified argument was out of the range of valid values

I've been working o a Timerjob project. All of a sudden, when I try to deploy the solution from VS, I got this error: Error 1 Error occurred in deployment step 'Add Solution': Specified ...
1
vote
2answers
627 views

Error occurred in deployment step 'Activate Features':

I am trying to deploy a Sharepoint solution on my local machine.But it is giving me the following error Error occurred in deployment step 'Activate Features': Failed to load receiver assembly "...
2
votes
1answer
355 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 ...
1
vote
1answer
28 views

Event reciever wont add users to visitors group on teamsite

my code wont add nt authority users to group visitors in min team site why? public override void FeatureActivated(SPFeatureReceiverProperties properties) { string usersAll = "NT ...
0
votes
1answer
21 views

Conceptual - How does a custom feature maps to the web application / site?

When we deploy a custom code such as a List Definition with custom forms, we are attaching it into the feature so that upon activation, the list and forms are created. Going behind the scenes, the ...
0
votes
1answer
32 views

When uploaded file from an external program, ItemAdded is not fired

I have an event receiver which works/triggered when I manually add document by click 'Add document', but the same in not working/triggered when an external application is uploading the document. For ...
0
votes
1answer
168 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 ...
0
votes
1answer
241 views

Documents list not exsists when activating feature

I have created a custom web template based on Team Site and added a SPWeb scoped feature to add a List View WebPart to it. It throws an exception when it comes to web.Lists["Documents"] and says ...
0
votes
1answer
76 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/"> <...
0
votes
1answer
125 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
0answers
29 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
114 views

How to get SPFeatureDefinition for Generic List in sandboxed solution

When creating custom list programatically from schema Add method needs SPFeatureDefinition object of the base list used. SPListCollection.Add method (String, String, String, String, Int32, ...
0
votes
0answers
24 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
30 views

Prevent / Revert Feature Activation on Exception

I have a custom feature. In the FeatureActivated event receiver, I am trying to check if the user is a Term Store Administrator or not and if not, I am throwing an SPException. I actually don't want ...
0
votes
0answers
29 views

Feature with an listinstance and eventreceiver to modify version settings, order issue?

I created in vs an listinstance. I add this list instance to a feature. In this feature I created a feature event receiver to modify the version settings. I see now when the feature event receiver is ...
0
votes
0answers
61 views

Create a list in the root web when site collection has been created

I have a site definition for creating a Site Collection. I need to develop a code (Event receiver, Feature Receiver and etc) to create a list in the root web of my site collection when it has been ...
0
votes
0answers
36 views

How to create sitecollection with subsites using custom site definition

How do we create a site collection with subsites using a custom site definition?I have tried adding a new feature and a feature receiver for creating subsites and specified this web scoped feature in ...
0
votes
0answers
39 views

How to activate publishing features (spweb en spsite) in an feature event receiver?

I have created some featureX which is creating some custom contenttype. This contenttype is inherited from the OOTB "ArticlePage". This OOTB contenttype is comming from the publishing features. I ...
0
votes
0answers
78 views

SPServiceContext is null exception when I try to create result source in farm feature receiver

I created an feature farm scoped. In the eventreceiver of this feature I would like to create a new custom "result source". When I try to deploy I got an exception in VS: Value cannot be null. ...
0
votes
0answers
441 views

FeatureActivated is not firing after activating feature in code-behind

I've a strange problem with activating a feature from C#: I have a list with a event receiver attached, which creates a new sub-site every time a new listitem has been added: var newWeb = subSites....