0
votes
1answer
21 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 ...
2
votes
1answer
56 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 ...
2
votes
1answer
83 views

Deleted Feature Receiver is Still Running

Here is a complicated one I have been banging my head against for months. I have a SharePoint 2010 site feature with a custom navigation provider. I have created a feature receiver that will add the ...
0
votes
1answer
139 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 ...
2
votes
1answer
325 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, ...
0
votes
1answer
100 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. ...
0
votes
3answers
917 views

Get deployed .aspx page in feature receiver to add WebPart

I have a SharePoint solution which deploys an aspx page in a custom folder in the Layouts folder. I need to get this page in the Feature Event Receiver so I can add to it a WebPart. In the ...
0
votes
1answer
484 views

Unable to create Sub web Programmatically in Feature Receiver

I have write code in Feature Receiver to Create SubSite but while Feature is activating it returns the error http://pc31:2000 contains illegal character ':'. This is My Code where I got Error. ...
0
votes
1answer
718 views

Error while creating Event Receiver

This is Sample of my Code SPList list = new SPSite(siteURL).OpenWeb().Lists[listName]; SPEventReceiverDefinitionCollection eventReceivers = list.EventReceivers; SPEventReceiverDefinition ...
2
votes
1answer
1k views

failed to create receiver object from assembly

I have created two features and I want both use same receiver class so I created a class MyFeatureReceiver (somewhere in project SP/MyRecievers/) which implements SPFeatureReceiver and has an ...
0
votes
1answer
102 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 ...
1
vote
1answer
516 views

ContenTypes on List Definition not added

I've an ListDefinition with some references to existing Content Types (provided by CTH) but when the list is created the content types are not added. elements.xml <Elements ...
7
votes
4answers
19k views

Error occurred in deployment step 'Activate Features': <nativehr>0x80070002</nativehr><nativestack></nativestack>

I have a feature. On the FeatureActivated event I am creating a list if it is not there. I also have an EventReceiver that in the elements.xml on the Receivers node has the attribute ListUrl. This is ...
6
votes
3answers
8k views

Best method to create custom NewForm / EditForm

I am new to sharepoint development and need to create some custom NewForm/EditForms for a new custom list I am creating. It seems like I have two choices: ...
0
votes
2answers
278 views

How can I pass an argument to a FeatureReceiver during solution setup?

I have this Sharepoint 2010 solution containing 3 projects: Class Library with Model classes Class Library with LINQ to SQL data context Sharepoint 2010 project WCF REST service 3 Visual web parts ...
1
vote
1answer
763 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 ...
4
votes
4answers
1k views

Web Template - Receivers Not Firing

I have a custom web template used to provision site collections that activates features with onet.xml and is deployed as a farm solution. I've tried both feature receivers and event receivers (on ...