How to: Create and Deploy Event Receivers in Sandboxed Solutions

SharePoint 2010

This topic describes how to create and deploy an event receiver in a sandboxed solution.

Last modified: April 14, 2011

Applies to: SharePoint Foundation 2010

Available in SharePoint Online

To create and test an event receiver

  1. Follow the steps in the topic How to: Create an Event Handler Feature.

  2. When testing and debugging is completed, make the sandboxed solution package (.wsp file) available to site collection administrators.

A site collection administrator can install a sandboxed solution to the site collection's solution gallery. There are two steps to this process. First, the solution package is uploaded to the gallery. Second, it is deployed, which is called "activation" for sandboxed solutions. The second step automatically activates any Features in the package. If any solution validators are registered with the site collection, they also execute at the activation stage. If the solution passes validation and has not been blocked by a farm administrator, it is ready for use on the site collection.

Show: