locked
Sandboxed solutions and feature receivers RRS feed

  • Question

  • In the SDK, it says that the SPFeatureReceiver class is available from sandboxed solutions.  However, it also says that feature receiver assemblies must reside in the GAC (just like WSS3).

    This seems like a contradiction to me.  I interpret the first part to mean that I can deploy feature receivers using sandboxed solutions.  Is "available from sandboxed solutions" just supposed to mean that features in sandboxed solutions can call receiver assemblies that have been previously deployed to the GAC, or am I overlooking something?

    Thanks in advance for any insight...
    Tuesday, November 17, 2009 8:46 PM

Answers

  • Sure enough, I've built feature receivers and deployed them to the solution gallery where Sandboxed Solutions are uploaded. They work! We did this at the day 2 keynote for PDC 2009. And they aren't installed to the GAC. For Farm Solutions they ceratinly do need to be instaled to the GAC.

    Regards,
    Paul
    SharePoint Product Manager. Posting is provided "AS IS" with no warranties, and confers no rights
    Monday, November 23, 2009 12:25 AM

All replies

  • Features with Feature Receivers can be used with Sandboxed Solutions. Please note that the documentation is still preliminary and may contain contant that needs to be updated to reflect the current release.
    w: http://blog.mastykarz.nl | t: @waldekm | c: http://imtech.codeplex.com | c: http://www.imtechvelocity.nl
    Wednesday, November 18, 2009 6:55 AM
  • I haven't tried it yet, but I think as long as your code accesses assets within the SPWeb object in receivers, you should be fine with sandboxed solutions. The problem would occur when your code starts interacting out of the site context.

    Regards,
    Chakkaradeep || SharePoint Developer - MCTS SharePoint Dev, WSS Dev
    http://www.intergen.co.nz || Twitter: http://twitter.com/chakkaradeep || http://www.chakkaradeep.com
    Wednesday, November 18, 2009 7:45 AM
  • Sure enough, I've built feature receivers and deployed them to the solution gallery where Sandboxed Solutions are uploaded. They work! We did this at the day 2 keynote for PDC 2009. And they aren't installed to the GAC. For Farm Solutions they ceratinly do need to be instaled to the GAC.

    Regards,
    Paul
    SharePoint Product Manager. Posting is provided "AS IS" with no warranties, and confers no rights
    Monday, November 23, 2009 12:25 AM