This guide shows the deployment process of Event Receiver in basics words.

This post is part of my SharePoint 2010 Development training:

What is deployed?

Deploying an Event Receiver involves the following components:

  • Feature.xml   
    Feature definition
  • Elements.xml   
    Defines:
    • Which event to handle e.g. item updated
    • Which assembly and which class handles the event
  • Assembly   
    Code of the Event Receiver

Where is deployed?

If the feature is deployed to a Web Application it becomes available at the scope you defined [1]. The feature.xml and the elements.xml are written to the file system in the features folder. Assemblies are deployed to the Global Assembly Cache (GAC).

Deployment Process of SharePoint 2010 Event Receiver.

Things to know!

  • By default an Event Receiver is bound to a type of list (e.g. Document Library in general).
  • You need to change the elements.xml to change this binding.

Resources

[1] Table of SharePoint Events, Event Receivers, and Event Hosts,
http://msdn.microsoft.com/en-us/library/ff408183.aspx


Get FREE & Advanced SharePoint Training, how-to's, tips & tricks:
Learn SharePoint

Add comment


Loading